diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-11-12 18:52:26 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-11-12 18:52:26 +0100 |
| commit | a4133432e47d9e45159f0ed1d4e7f6a2c02dc5b6 (patch) | |
| tree | 679ee33faf91877685a89e3bfe8743bf2b013eea /src/js | |
| parent | 66db97a494d4605c66ba0da049accf0375f647b2 (diff) | |
| download | chawan-a4133432e47d9e45159f0ed1d4e7f6a2c02dc5b6.tar.gz | |
buffer: fix broken gotoAnchor behavior
23beebe6 introduced a regression that broke gotoAnchor. This fixes that,
plus a couple other long-standing gotoAnchor bugs:
* If no anchor is found, do not dupe the buffer.
Desktop browsers still add a history entry, while w3m prints an
error. I've copied the latter because it makes more sense as a user,
but this will have to be refined for the navigation API at some point.
* If the anchor *is* found, then always jump to it, even if it's not
visible.
This was a limitation of relying on the line array, so now we rely on
the box tree instead. (Sooner or later, the former must go anyway.)
Also, fix `U' reload not restoring the position (hopefully this time for
good).
Diffstat (limited to 'src/js')
0 files changed, 0 insertions, 0 deletions