diff options
| -rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
