mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 23:05: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 {
|
if len(args) == 0 {
|
||||||
h.Save()
|
h.Save()
|
||||||
} else {
|
} else {
|
||||||
err := h.Buf.SaveAs(args[0])
|
h.saveBufToFile(args[0], "SaveAs", nil)
|
||||||
if err != nil {
|
|
||||||
InfoBar.Error(err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user