mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-27 00:51:18 +02:00
don't watch deleted files
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user