File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ function Explorer:create_autocmds()
101101 vim .api .nvim_create_autocmd (" BufReadPost" , {
102102 group = self .augroup_id ,
103103 callback = function (data )
104- if (self .filters .state .no_buffer or self .opts .highlight_opened_files ~= " none" ) and vim .bo [data .buf ].buftype == " " then
104+ if (self .filters .state .no_buffer or self .opts .renderer . highlight_opened_files ~= " none" ) and vim .bo [data .buf ].buftype == " " then
105105 utils .debounce (" Buf:filter_buffer_" .. self .uid_explorer , self .opts .view .debounce_delay , function ()
106106 self :reload_explorer ()
107107 end )
@@ -113,7 +113,7 @@ function Explorer:create_autocmds()
113113 vim .api .nvim_create_autocmd (" BufUnload" , {
114114 group = self .augroup_id ,
115115 callback = function (data )
116- if (self .filters .state .no_buffer or self .opts .highlight_opened_files ~= " none" ) and vim .bo [data .buf ].buftype == " " then
116+ if (self .filters .state .no_buffer or self .opts .renderer . highlight_opened_files ~= " none" ) and vim .bo [data .buf ].buftype == " " then
117117 utils .debounce (" Buf:filter_buffer_" .. self .uid_explorer , self .opts .view .debounce_delay , function ()
118118 self :reload_explorer ()
119119 end )
You can’t perform that action at this time.
0 commit comments