aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-10-25 22:27:18 +0200
committerjcid <devnull@localhost>2007-10-25 22:27:18 +0200
commit6e982fdd085aded757765aadf2b26d6aa896da62 (patch)
tree22eca8e5517a221c4c40455b40a3f12f03e2a476 /src
parent9c82e3b54e82bd6cd9a3541c289eaf9c5393ed63 (diff)
Fixed a bug in the scrolling patch
Diffstat (limited to 'src')
-rw-r--r--src/nav.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nav.c b/src/nav.c
index 29322cce..a89dad1e 100644
--- a/src/nav.c
+++ b/src/nav.c
@@ -188,12 +188,13 @@ static void Nav_open_url(BrowserWindow *bw, const DilloUrl *url, int offset)
/* Get the url of the current page */
idx = a_Nav_stack_ptr(bw);
- old_url = a_History_get_url(idx);
+ old_url = a_History_get_url(NAV_UIDX(bw, idx));
+ MSG("Nav_open_url: idx=%d old_url='%s'\n", idx, URL_STR(old_url));
/* Record current scrolling position */
if (old_url) {
a_UIcmd_get_scroll_xy(bw, &x, &y);
Nav_set_scroll_pos(bw, idx, x, y);
- MSG("Nav_open_url: set scroll of '%s' to x=%d y=%d\n",
+ MSG("Nav_open_url: saved scroll of '%s' at x=%d y=%d\n",
URL_STR(old_url), x, y);
}