aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-17 23:27:43 +0200
committerSebastian Geerken <devnull@localhost>2014-09-17 23:27:43 +0200
commit09f2d8f0afbb905fb5b45714ead2c7151ad3103d (patch)
tree1d1f59375f6d584da41c1199b9b7e4b1ca659b0c /src
parentf95d312635d5c2a88a367524e4d742ea7771dc01 (diff)
parentb968c298957c20d28908b7050708807049f9fccb (diff)
Merge with main repo.
Diffstat (limited to 'src')
-rw-r--r--src/ui.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.cc b/src/ui.cc
index d3bc7ff6..a5785576 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -816,7 +816,7 @@ void UI::set_location(const char *str)
{
if (!str) str = "";
Location->value(str);
- Location->position(strlen(str));
+ Location->position((Fl::focus() == Location) ? strlen(str) : 0);
}
/*