mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 06:45:40 -04:00
Updating SaveCmd to use saveBufToFile instead
This commit is contained in:
parent
98356765c1
commit
c9f12206e9
@ -907,10 +907,7 @@ func (h *BufPane) SaveCmd(args []string) {
|
||||
if len(args) == 0 {
|
||||
h.Save()
|
||||
} else {
|
||||
err := h.Buf.SaveAs(args[0])
|
||||
if err != nil {
|
||||
InfoBar.Error(err)
|
||||
}
|
||||
h.saveBufToFile(args[0], "SaveAs", nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user