summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2011-09-28 02:11:14 +0000
committerMatthias Melcher <fltk@matthiasm.com>2011-09-28 02:11:14 +0000
commitb2399e393f305d3af90aa3b11f93dc83ea9a2766 (patch)
tree1629b4ddb4d4959f7bddb176abc84dba8c9e0071 /src
parent0ee93242684ef8282807eb9068e213e6a92746c1 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Input_.cxx2
1 files changed, 1 insertions, 1 deletions
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) {