about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-08-27 18:43:00 +0200
committerbptato <nincsnevem662@gmail.com>2024-08-27 18:43:31 +0200
commita3d808bd07acb8859e4934ec0a6698f605290557 (patch)
tree8cf4745992adf2c123abe246d2bf1aecb23df532 /src
parent494c0cc92d84162b68aa7f3c79a99b2262eadc6f (diff)
downloadchawan-a3d808bd07acb8859e4934ec0a6698f605290557.tar.gz
pager: fix nav direction after view source
Diffstat (limited to 'src')
-rw-r--r--src/local/pager.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index d81d4986..8abaf16f 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1083,6 +1083,7 @@ proc toggleSource(pager: Pager) {.jsfunc.} =
     let container = pager.newContainerFrom(pager.container, contentType)
     if container != nil:
       container.sourcepair = pager.container
+      pager.navDirection = ndNext
       pager.container.sourcepair = container
       pager.addContainer(container)