From 8ffe967089c32a11af2a9d219d79dc9cd9858dd4 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 27 Apr 2006 03:06:23 +0000 Subject: STR 1161: Setting a new value in Fl_Input_ wil now actually move cursor to the end of the input field as documented git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5034 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 3 +++ src/Fl_Input_.cxx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3