diff options
author | jcid <devnull@localhost> | 2008-03-14 18:34:14 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-03-14 18:34:14 +0100 |
commit | f6fab73d9f4f53fa1326fac45a344db1d4390e6a (patch) | |
tree | 6a8299ef522415f85c1f9edb4774146b8157f1d6 /src/nav.c | |
parent | 501de6ce65f4d8df60bd8040eef9dab92b7179ea (diff) |
- Fixed a problem with repush() and remembering the scrolling position.
Diffstat (limited to 'src/nav.c')
-rw-r--r-- | src/nav.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -203,7 +203,9 @@ static void Nav_open_url(BrowserWindow *bw, const DilloUrl *url, int offset) 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) { + if (URL_FLAGS(url) & URL_ReloadFromCache) { + /* Repush operation, don't change scroll position */ + } else if (old_url) { a_UIcmd_get_scroll_xy(bw, &x, &y); Nav_set_scroll_pos(bw, idx, x, y); _MSG("Nav_open_url: saved scroll of '%s' at x=%d y=%d\n", |