changeset 938:b134ea74331b

Made repush remember the scroll position.
author Jorge Arellano Cid <jcid@dillo.org>
date Wed, 11 Feb 2009 17:03:54 -0300
parents 61ac49615a40
children c8eaa0d240bf
files src/nav.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/nav.c	Wed Feb 11 15:25:32 2009 -0300
+++ b/src/nav.c	Wed Feb 11 17:03:54 2009 -0300
@@ -208,9 +208,7 @@
    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",