diff options
-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) |