From 397c29443a4dbd5022749f5afc2600b7c17f34b6 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Mon, 12 Feb 2018 00:06:31 -0500 Subject: [PATCH] Fix SaveAs Lua callback Fixes #1029 --- cmd/micro/actions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/micro/actions.go b/cmd/micro/actions.go index 41c89e71..5b64a4d5 100644 --- a/cmd/micro/actions.go +++ b/cmd/micro/actions.go @@ -1016,7 +1016,7 @@ func (v *View) saveToFile(filename string) { // SaveAs saves the buffer to disk with the given name func (v *View) SaveAs(usePlugin bool) bool { if v.mainCursor() { - if usePlugin && !PreActionCall("Find", v) { + if usePlugin && !PreActionCall("SaveAs", v) { return false } @@ -1033,7 +1033,7 @@ func (v *View) SaveAs(usePlugin bool) bool { } if usePlugin { - PostActionCall("Find", v) + PostActionCall("SaveAs", v) } } return false