diff --git a/cmd/micro/command.go b/cmd/micro/command.go index 041ae46f..4e3c6ab3 100644 --- a/cmd/micro/command.go +++ b/cmd/micro/command.go @@ -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)