Fix build error

This commit is contained in:
Zachary Yedidia
2016-04-23 18:28:41 -04:00
parent 2adaf68bd4
commit 2b8cc4cfce

View File

@@ -102,7 +102,7 @@ func HandleCommand(input string, view *View) {
os.Exit(0)
}
case "save":
view.Save()
Save(view)
case "replace":
r := regexp.MustCompile(`"[^"\\]*(?:\\.[^"\\]*)*"|[^\s]*`)
replaceCmd := r.FindAllString(strings.Join(args, " "), -1)