From b2399e393f305d3af90aa3b11f93dc83ea9a2766 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 28 Sep 2011 02:11:14 +0000 Subject: STR 2684: increased right margin in Fl_Input_ so that a cursor at the end of a line would always be fully visible. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9068 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Input_.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index 96b3d157b..eea14b838 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -255,7 +255,7 @@ void Fl_Input_::drawtext(int X, int Y, int W, int H) { // figure out scrolling so there is space after the cursor: newscroll = curx+threshold-W; // figure out the furthest left we ever want to scroll: - int ex = int(expandpos(p, e, buf, 0))+2-W; + int ex = int(expandpos(p, e, buf, 0))+4-W; // use minimum of both amounts: if (ex < newscroll) newscroll = ex; } else if (curx < newscroll+threshold) { -- cgit v1.2.3