mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-17 14:27:12 +09:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user