File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ local events = require "nvim-tree.events"
6
6
7
7
M .View = {
8
8
tabpages = {},
9
+ cursors = {},
9
10
hide_root_folder = false ,
10
11
winopts = {
11
12
relativenumber = false ,
158
159
-- save_tab_state saves any state that should be preserved across redraws.
159
160
local function save_tab_state ()
160
161
local tabpage = a .nvim_get_current_tabpage ()
161
- M .View .tabpages [tabpage ]. cursor = a .nvim_win_get_cursor (M .get_winnr ())
162
+ M .View .cursors [tabpage ] = a .nvim_win_get_cursor (M .get_winnr ())
162
163
end
163
164
164
165
function M .close ()
305
306
--- Restores the state of a NvimTree window if it was initialized before.
306
307
function M .restore_tab_state ()
307
308
local tabpage = a .nvim_get_current_tabpage ()
308
- M .set_cursor (M .View .tabpages [tabpage ]. cursor )
309
+ M .set_cursor (M .View .cursors [tabpage ])
309
310
end
310
311
311
312
--- Returns the window number for nvim-tree within the tabpage specified
You can’t perform that action at this time.
0 commit comments