fix: handle error when no file selector window exists when no files (#2021)
This commit is contained in:
@@ -2830,7 +2830,7 @@ function Sidebar:create_selected_files_container()
|
|||||||
local selected_filepaths_ = self.file_selector:get_selected_filepaths()
|
local selected_filepaths_ = self.file_selector:get_selected_filepaths()
|
||||||
|
|
||||||
if #selected_filepaths_ == 0 then
|
if #selected_filepaths_ == 0 then
|
||||||
if self.selected_files_container and api.nvim_win_is_valid(self.selected_files_container.winid) then
|
if Utils.is_valid_container(self.selected_files_container) then
|
||||||
self.selected_files_container:unmount()
|
self.selected_files_container:unmount()
|
||||||
self:refresh_winids()
|
self:refresh_winids()
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user