aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2008-03-14 18:34:14 +0100
committerjcid <devnull@localhost>2008-03-14 18:34:14 +0100
commitf6fab73d9f4f53fa1326fac45a344db1d4390e6a (patch)
tree6a8299ef522415f85c1f9edb4774146b8157f1d6 /src
parent501de6ce65f4d8df60bd8040eef9dab92b7179ea (diff)
- Fixed a problem with repush() and remembering the scrolling position.
Diffstat (limited to 'src')
-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",