diff options
author | bptato <nincsnevem662@gmail.com> | 2024-02-26 17:59:31 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-02-26 18:02:11 +0100 |
commit | 5d9ce84029a44b9b795cc935369b45ceceb6e188 (patch) | |
tree | 76077d54c83ddf804129df56ca757e54e20f034c | |
parent | d74933cf04e79e08f3623c6dd1c112fa26a7a4df (diff) | |
download | chawan-5d9ce84029a44b9b795cc935369b45ceceb6e188.tar.gz |
pager: do not add replacement containers
they will replace the target container on connection, so inserting them in a different place first results in strange navigation bugs
-rw-r--r-- | src/local/pager.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index 40b093ac..a1ebaeb8 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -709,7 +709,9 @@ proc gotoURL(pager: Pager, request: Request, prevurl = none(URL), if replace != nil: container.replace = replace container.copyCursorPos(container.replace) - pager.addContainer(container) + pager.registerContainer(container) + else: + pager.addContainer(container) inc pager.numload else: pager.container.findAnchor(request.url.anchor) |