aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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