mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 14:47:16 +09:00
actions: SaveCmd: Print the error of SaveAs to the InfoBar
This commit is contained in:
@@ -890,7 +890,10 @@ func (h *BufPane) SaveCmd(args []string) {
|
|||||||
if len(args) == 0 {
|
if len(args) == 0 {
|
||||||
h.Save()
|
h.Save()
|
||||||
} else {
|
} else {
|
||||||
h.Buf.SaveAs(args[0])
|
err := h.Buf.SaveAs(args[0])
|
||||||
|
if err != nil {
|
||||||
|
InfoBar.Error(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user