aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErlend Fagerheim <erlendf80@gmail.com>2017-07-14 20:40:07 +0200
committerErlend Fagerheim <erlendf80@gmail.com>2017-07-14 20:40:07 +0200
commitbfc07ce7934f0fb49b7941118619f5fdf4522175 (patch)
tree79dbee1d3054bea326ca6b64983eab20c68121be
parent620c2c4b1af1bfff771085b674ad8d7e0973f7ea (diff)
downloadvis-cursors-bfc07ce7934f0fb49b7941118619f5fdf4522175.tar.gz
cursor was renamed to selection
-rw-r--r--cursors.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/cursors.lua b/cursors.lua
index 664de42..ed49961 100644
--- a/cursors.lua
+++ b/cursors.lua
@@ -6,7 +6,7 @@ function set_cursor_pos(win)
if win.file == nil or win.file.path == nil then return end
local pos = cursors[win.file.path]
if pos == nil then return end
- win.cursor.pos = tonumber(pos)
+ win.selection.pos = tonumber(pos)
vis:feedkeys("zz")
end
@@ -55,7 +55,7 @@ end
function on_win_close(win)
if win.file == nil or win.file.path == nil then return end
if not file_exists(win.file.path) then return end
- cursors[win.file.path] = win.cursor.pos
+ cursors[win.file.path] = win.selection.pos
end
function on_quit()