aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-02-11 17:03:54 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-02-11 17:03:54 -0300
commit17e082cef393a2ce528eae5fe63f9e249c888e73 (patch)
treea309462e3e6ba80951f2558dc7d93f7b9cc140d7 /src
parentf6d59d801f6a86aaeb721c15cad931c74daa5585 (diff)
Made repush remember the scroll position.
Diffstat (limited to 'src')
-rw-r--r--src/nav.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nav.c b/src/nav.c
index 7ccb4620..1e184830 100644
--- a/src/nav.c
+++ b/src/nav.c
@@ -208,9 +208,7 @@ 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: old_url='%s' idx=%d\n", URL_STR(old_url), idx);
/* Record current scrolling position */
- if (Repush) {
- /* Don't change scroll position */
- } else if (old_url) {
+ if (old_url) {
a_UIcmd_get_scroll_xy(bw, &x, &y);
Nav_save_scroll_pos(bw, idx, x, y);
_MSG("Nav_open_url: saved scroll of '%s' at x=%d y=%d\n",