diff --git a/VimR/FileBrowserComponent.swift b/VimR/FileBrowserComponent.swift index 4aa952ef..3059ab0e 100644 --- a/VimR/FileBrowserComponent.swift +++ b/VimR/FileBrowserComponent.swift @@ -61,6 +61,10 @@ class FileBrowserComponent: ViewComponent, NSOutlineViewDataSource, NSOutlineVie return } + guard self.fileView.row(forItem: fileItem) > -1 else { + return + } + // NSLog("\(root) -> \(fileItem)") DispatchUtils.gui { self.fileView.reloadItem(fileItem, reloadChildren: true)