commit f3aa93fa484628316105dac6bfe4cea4b6992a3b
parent 0525fbddbc10232d44b3ce1bcc434554cafecd81
Author: Steve Francia <steve.francia@gmail.com>
Date: Mon, 21 Dec 2015 19:46:12 -0500
Ignore temp files created by IntelliJ when saving
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/hugo.go b/commands/hugo.go
@@ -577,7 +577,7 @@ 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___")
+ istemp := strings.HasSuffix(ext, "~") || (ext == ".swp") || (ext == ".swx") || (ext == ".tmp") || strings.HasPrefix(ext, ".goutputstream") || strings.HasSuffix(ext, "jb_old___")|| strings.HasSuffix(ext, "jb_bak___")
if istemp {
continue
}