about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-30 12:14:32 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-30 12:26:55 +0100
commit83734c32eb5833c7443602d8fa4a90ad8f317c8f (patch)
tree0e7d04d6a6026595eefe2a4d06b06b25ef350d32 /src
parent33c93d1166ec99b7119e25363c1c55138e746442 (diff)
downloadchawan-83734c32eb5833c7443602d8fa4a90ad8f317c8f.tar.gz
term: fix cursorForward, cursorBackward
Diffstat (limited to 'src')
-rw-r--r--src/display/term.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/display/term.nim b/src/display/term.nim
index ad9368d3..0ab82367 100644
--- a/src/display/term.nim
+++ b/src/display/term.nim
@@ -146,14 +146,14 @@ proc cursorBackward*(term: Terminal, i: int) =
       term.write("\b")
     else:
       when termcap_found:
-        term.write($tgoto(term.ccap LE, cint(i), 0))
+        term.write($tgoto(term.ccap LE, 0, cint(i)))
       else:
         term.outfile.cursorBackward(i)
 
 proc cursorForward*(term: Terminal, i: int) =
   if i > 0:
     when termcap_found:
-      term.write($tgoto(term.ccap RI, cint(i), 0))
+      term.write($tgoto(term.ccap RI, 0, cint(i)))
     else:
       term.outfile.cursorForward(i)