diff options
author | jcid <devnull@localhost> | 2007-11-21 02:31:24 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-11-21 02:31:24 +0100 |
commit | d57413d5a92a875aca6327fb227207a2eba95e81 (patch) | |
tree | 2b123f97e11d7c29402e25c0d06e7873893a370b /src/nav.c | |
parent | e3dc26c04e15024ffb1b130c626bb4d5e8c7bdff (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |