summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-01-31 19:14:06 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-01-31 19:14:06 +0000
commitf53642c94b8a7bcdddc0bd6e7fcb248403d50ae4 (patch)
tree030b20ea62bac20865adac194808213c7f889e7b
parent8866964740ee1c84b8e717286a882cac28022e08 (diff)
downloadnetsurf-f53642c94b8a7bcdddc0bd6e7fcb248403d50ae4.tar.gz
netsurf-f53642c94b8a7bcdddc0bd6e7fcb248403d50ae4.tar.bz2
[project @ 2004-01-31 19:14:06 by jmb]
Fix positioning of caret in URL bar svn path=/import/netsurf/; revision=520
-rw-r--r--riscos/gui.c4
-rw-r--r--riscos/url.c2
-rw-r--r--riscos/window.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 05627a1c2..961d2c927 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -509,7 +509,7 @@ void ro_gui_icon_bar_click(wimp_pointer *pointer)
wimp_set_caret_position(bw->window->data.browser.toolbar,
ICON_TOOLBAR_URL,
0, 0, -1,
- (int) strlen(bw->window->url) - 1);
+ (int) strlen(bw->window->url));
}
}
@@ -895,7 +895,7 @@ void ro_gui_open_help_page (void)
browser_window_open_location(bw, HELP_URL);
wimp_set_caret_position(bw->window->data.browser.toolbar,
ICON_TOOLBAR_URL,
- 0,0,-1, (int) strlen(bw->window->url) - 1);
+ 0,0,-1, (int) strlen(bw->window->url));
}
diff --git a/riscos/url.c b/riscos/url.c
index 0eba47891..4b01280c8 100644
--- a/riscos/url.c
+++ b/riscos/url.c
@@ -121,7 +121,7 @@ void ro_url_message_received(wimp_message* message)
wimp_set_caret_position(bw->window->data.browser.toolbar,
ICON_TOOLBAR_URL,
- 0,0,-1, (int) strlen(bw->window->url) - 1);
+ 0,0,-1, (int) strlen(bw->window->url));
#ifdef ALLOW_POST
xfree(filename);
diff --git a/riscos/window.c b/riscos/window.c
index 5939a0127..58b852b9d 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -334,7 +334,7 @@ void gui_window_set_url(gui_window *g, char *url)
if (c.w == g->window || c.w == g->data.browser.toolbar) {
wimp_set_caret_position(g->data.browser.toolbar,
ICON_TOOLBAR_URL,
- 0,0,-1, (int) strlen(g->url) - 1);
+ 0,0,-1, (int) strlen(g->url));
}
}