diff --git a/commands/hugo.go b/commands/hugo.go index 8a45fbe3c..ce96e21c9 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -711,7 +711,15 @@ func NewWatcher(port int) error { for _, ev := range evs { ext := filepath.Ext(ev.Name) - istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___") || strings.HasSuffix(ext, "jb_bak___") || (ext == ".DS_Store") + istemp := strings.HasSuffix(ext, "~") || + (ext == ".swp") || + (ext == ".swx") || + (ext == ".tmp") || + (ext == ".DS_Store") || + filepath.Base(ev.Name) == "4913" || + strings.HasPrefix(ext, ".goutputstream") || + strings.HasSuffix(ext, "jb_old___") || + strings.HasSuffix(ext, "jb_bak___") if istemp { continue }