summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES3
-rw-r--r--src/Fl_Input_.cxx2
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index c71fa7b11..ccca08263 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
CHANGES IN FLTK 1.1.8
+ - Setting a new value in Fl_Input_ wil now actually move
+ cursor to the end of the input field as documented
+ (STR #1161)
- FLUID crashed on WIN32 with international characters
(STR #1176)
- Fl_Check_Browser did not allow the user to toggle the
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx
index a61be37e1..b22284b43 100644
--- a/src/Fl_Input_.cxx
+++ b/src/Fl_Input_.cxx
@@ -868,7 +868,7 @@ int Fl_Input_::static_value(const char* str, int len) {
xscroll_ = yscroll_ = 0;
minimal_update(0);
}
- position(0, readonly() ? 0 : size());
+ position(readonly() ? 0 : size());
return 1;
}