aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-05-30 16:20:40 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-05-30 16:20:40 +0200
commitaf99bfb2a3be649e10f5fdc81b9bf8aaf4bb2d1c (patch)
tree0b6d2e36907e1e080fc345691be2cc0a3ba060ec
parent12eb98edcb560302d6986596b34de087b9f88431 (diff)
downloadvis-open-extend-af99bfb2a3be649e10f5fdc81b9bf8aaf4bb2d1c.tar.gz
vis-open-extend-af99bfb2a3be649e10f5fdc81b9bf8aaf4bb2d1c.zip
use the actual function name of the position conversion functionHEADmain
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 9799bb2..71f5d10 100644
--- a/init.lua
+++ b/init.lua
@@ -27,7 +27,7 @@ vis.events.subscribe(vis.events.WIN_OPEN, function(win)
-- After the other handlers ran we set the position
column = column or 1
- local pos = win.file:pos_by_linecol(line, column)
+ local pos = win.file:offset_from_line_column(line, column)
vis.win.selection.pos = pos
-- Stop handling the old FILE_OPEN event since we changed the file and emitted