aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2014-09-16 00:21:49 +0000
committercorvid <devnull@localhost>2014-09-16 00:21:49 +0000
commit88cabc495ed24d8c6304852e141fc5294699c0a2 (patch)
tree606dcbdf23fbf4ecfdb6f6f635af814f8d6a288c
parent186a2baaac60d9c4d1d2e47f3a4d94a83d6af94c (diff)
url positioning in location bar
the brief thread http://lists.dillo.org/pipermail/dillo-dev/2014-September/010205.html
-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);
}
/*