Skip to content

Commit

Permalink
don't watch deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseduffield committed Jan 8, 2020
1 parent c7d367a commit c3d54f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/gui/file_watching.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ func (w *fileWatcher) addFilesToFileWatcher(files []*commands.File) error {
}

for _, file := range files[0:min(MAX_WATCHED_FILES, len(files))] {
if file.Deleted {
continue
}
filename := filepath.Join(dirName, file.Name)
if w.watchingFilename(filename) {
continue
Expand Down

0 comments on commit c3d54f3

Please sign in to comment.