From af99bfb2a3be649e10f5fdc81b9bf8aaf4bb2d1c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 30 May 2026 16:20:40 +0200 Subject: use the actual function name of the position conversion function --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.lua') 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 -- cgit v1.2.3