about summary refs log tree commit diff stats
path: root/src/local
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-29 01:42:33 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-29 01:42:33 +0100
commit1f3e1d397513c2a7a27372c3fe5c4bc9d74b6f09 (patch)
tree3b2605af34d2a3d6cefd851bbb4e15b5e2a568f0 /src/local
parent558596b72c1c0fd355b0e7f1476651852e3cee5a (diff)
downloadchawan-1f3e1d397513c2a7a27372c3fe5c4bc9d74b6f09.tar.gz
pager: fix gotoURL crashing
should finally convert the code to strictDefs, implicit result is a
horrible footgun
Diffstat (limited to 'src/local')
-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 f74cf798..9b417d95 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -904,6 +904,7 @@ proc load(pager: Pager, s = "") {.jsfunc.} =
 # Go to specific URL (for JS)
 proc jsGotoURL(pager: Pager, s: string): JSResult[void] {.jsfunc: "gotoURL".} =
   pager.gotoURL(newRequest(?newURL(s)))
+  ok()
 
 # Reload the page in a new buffer, then kill the previous buffer.
 proc reload(pager: Pager) {.jsfunc.} =