about summary refs log tree commit diff stats
path: root/src/local
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-09 16:36:40 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-09 16:38:30 +0100
commit4aa3e24199f0aac97d5541adcbf1ae137f7b64f0 (patch)
tree807746ba02260f40362fbad3a3d5a3a42ea1a274 /src/local
parent6a1b1a2edfc6adf3d1d1a1aaa2c9fd95eccc8ff7 (diff)
downloadchawan-4aa3e24199f0aac97d5541adcbf1ae137f7b64f0.tar.gz
pager: add precnum to [, ]
Diffstat (limited to 'src/local')
-rw-r--r--src/local/container.nim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/local/container.nim b/src/local/container.nim
index 7cb67862..2f54a3e4 100644
--- a/src/local/container.nim
+++ b/src/local/container.nim
@@ -836,16 +836,16 @@ proc copyCursorPos*(container, c2: Container) =
   container.startpos = some(c2.pos)
   container.hasstart = true
 
-proc cursorNextLink*(container: Container) {.jsfunc.} =
+proc cursorNextLink*(container: Container, n = 1) {.jsfunc.} =
   container.iface
-    .findNextLink(container.cursorx, container.cursory)
+    .findNextLink(container.cursorx, container.cursory, n)
     .then(proc(res: tuple[x, y: int]) =
       if res.x > -1 and res.y != -1:
         container.setCursorXYCenter(res.x, res.y))
 
-proc cursorPrevLink*(container: Container) {.jsfunc.} =
+proc cursorPrevLink*(container: Container, n = 1) {.jsfunc.} =
   container.iface
-    .findPrevLink(container.cursorx, container.cursory)
+    .findPrevLink(container.cursorx, container.cursory, n)
     .then(proc(res: tuple[x, y: int]) =
       if res.x > -1 and res.y != -1:
         container.setCursorXYCenter(res.x, res.y))