From f6fab73d9f4f53fa1326fac45a344db1d4390e6a Mon Sep 17 00:00:00 2001 From: jcid Date: Fri, 14 Mar 2008 18:34:14 +0100 Subject: - Fixed a problem with repush() and remembering the scrolling position. --- src/nav.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/nav.c') diff --git a/src/nav.c b/src/nav.c index 7b5e6cc5..5d3b56cf 100644 --- a/src/nav.c +++ b/src/nav.c @@ -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", -- cgit v1.2.3