aboutsummaryrefslogtreecommitdiffstats
path: root/src/local
diff options
context:
space:
mode:
Diffstat (limited to 'src/local')
-rw-r--r--src/local/container.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/local/container.nim b/src/local/container.nim
index b9825c7c..981c4802 100644
--- a/src/local/container.nim
+++ b/src/local/container.nim
@@ -706,6 +706,12 @@ proc setCursorYCenter(container: Container; y: int; refresh = true)
if fy != container.fromy:
container.centerLine()
+proc setCursorXCenter(container: Container; x: int; refresh = true) {.jsfunc.} =
+ let fx = container.fromx
+ container.setCursorX(x, refresh)
+ if fx != container.fromx:
+ container.centerColumn()
+
proc setCursorXYCenter*(container: Container; x, y: int; refresh = true)
{.jsfunc.} =
let fy = container.fromy