summaryrefslogtreecommitdiff
path: root/src/nav.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nav.c')
-rw-r--r--src/nav.c4
1 files changed, 3 insertions, 1 deletions
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",