summaryrefslogtreecommitdiff
path: root/src/nav.c
diff options
context:
space:
mode:
authorjcid <devnull@localhost>2007-11-21 02:31:24 +0100
committerjcid <devnull@localhost>2007-11-21 02:31:24 +0100
commitd57413d5a92a875aca6327fb227207a2eba95e81 (patch)
tree2b123f97e11d7c29402e25c0d06e7873893a370b /src/nav.c
parente3dc26c04e15024ffb1b130c626bb4d5e8c7bdff (diff)
- Switched dillo to push a URL with fragment (anchor) into the stack.
- Re-enabled scrolling with Up/Down arrows.
Diffstat (limited to 'src/nav.c')
-rw-r--r--src/nav.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nav.c b/src/nav.c
index 4652baa2..39638219 100644
--- a/src/nav.c
+++ b/src/nav.c
@@ -201,11 +201,11 @@ static void Nav_open_url(BrowserWindow *bw, const DilloUrl *url, int offset)
/* Update navigation-stack-pointer (offset may be zero) */
Nav_stack_move_ptr(bw, offset);
- /* Page must be reloaded, if old and new url (without anchor) differ */
+ /* Page must be reloaded, if old and new url (considering anchor) differ */
MustLoad = ForceReload || !old_url;
if (old_url){
- MustLoad |= (a_Url_cmp(old_url, url) != 0);
- MustLoad |= strcmp(URL_STR(old_url), a_UIcmd_get_location_text(bw));
+ MustLoad |= (a_Url_cmp(old_url, url) ||
+ strcmp(URL_FRAGMENT(old_url), URL_FRAGMENT(url)));
}
if (MustLoad) {