about summary refs log tree commit diff stats
path: root/src/local
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-21 17:58:42 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-21 18:02:44 +0100
commit140e1c494d4fb340c73144656f270e4a4d363698 (patch)
tree320b77bd24853a50346a2636df0028a9ea039db1 /src/local
parent3563b6e5d67e88dd9f7a261b65d15d9360e979bd (diff)
downloadchawan-140e1c494d4fb340c73144656f270e4a4d363698.tar.gz
container: fix gotoMarkY
Now it actually does what it was supposed to do.

Also, clarify what it does in config.md
Diffstat (limited to 'src/local')
-rw-r--r--src/local/container.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/container.nim b/src/local/container.nim
index 74011a53..ea1f5173 100644
--- a/src/local/container.nim
+++ b/src/local/container.nim
@@ -964,7 +964,7 @@ proc gotoMarkY*(container: Container, id: string): bool {.jsfunc.} =
   let mark = container.getMarkPos(id)
   if mark.isSome:
     let mark = mark.get
-    container.setCursorXYCenter(mark.x, mark.y)
+    container.setCursorXYCenter(0, mark.y)
     container.markPos()
     return true
   return false