summaryrefslogtreecommitdiff
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
commit4584cfb4041fc35b22886c0252b3169de64a787e (patch)
treea51ffb303d4342b0d19161bc6cc6320cae004944
parent0824591133ebfa5a360df92e22bdde0454f43b1d (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);
}
/*