diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-05-30 16:20:40 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-05-30 16:20:40 +0200 |
| commit | af99bfb2a3be649e10f5fdc81b9bf8aaf4bb2d1c (patch) | |
| tree | 0b6d2e36907e1e080fc345691be2cc0a3ba060ec /init.lua | |
| parent | 12eb98edcb560302d6986596b34de087b9f88431 (diff) | |
| download | vis-open-extend-af99bfb2a3be649e10f5fdc81b9bf8aaf4bb2d1c.tar.gz vis-open-extend-af99bfb2a3be649e10f5fdc81b9bf8aaf4bb2d1c.zip | |
Diffstat (limited to 'init.lua')
| -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 |
