fix match autosaves

master
Avril 4 years ago
parent 0a81351f2a
commit 289308ccf3
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -40,8 +40,8 @@ func walk(rpath string, lock *semaphore.Semaphore, output chan string, wait *syn
} }
var work_re *regexp.Regexp = regexp.MustCompile(`~$`) var work_re *regexp.Regexp = regexp.MustCompile(`~$`)
var as_re *regexp.Regexp = regexp.MustCompile(`^\.#(.*)$`) var as_re *regexp.Regexp = regexp.MustCompile(`(^|/)\.#(.*)$`)
var as_re2 *regexp.Regexp = regexp.MustCompile(`^#(.*)#$`) var as_re2 *regexp.Regexp = regexp.MustCompile(`(^|/)#(.*)#$`)
func file_exists(file string) bool { func file_exists(file string) bool {
if s, err:= os.Stat(file); err == nil { if s, err:= os.Stat(file); err == nil {

Loading…
Cancel
Save