From aa2c55aae5a1cdbdbb434b2fbab3901dc33fb350 Mon Sep 17 00:00:00 2001 From: Tae Won Ha Date: Tue, 4 Oct 2016 23:34:02 +0200 Subject: [PATCH] GH-286 Guard against files which disappear fast --- VimR/FileBrowserComponent.swift | 4 ++++ 1 file changed, 4 insertions(+) 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)