diff options
author | jcid <devnull@localhost> | 2007-10-25 22:27:18 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-10-25 22:27:18 +0200 |
commit | 6e982fdd085aded757765aadf2b26d6aa896da62 (patch) | |
tree | 22eca8e5517a221c4c40455b40a3f12f03e2a476 /src/nav.c | |
parent | 9c82e3b54e82bd6cd9a3541c289eaf9c5393ed63 (diff) |
Fixed a bug in the scrolling patch
Diffstat (limited to 'src/nav.c')
-rw-r--r-- | src/nav.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); } |