mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-17 06:20:28 +00:00
actions: SaveCmd: Print the error of SaveAs to the InfoBar
This commit is contained in:
parent
5c21241fc4
commit
3fcaf16074
1 changed files with 4 additions and 1 deletions
|
|
@ -890,7 +890,10 @@ func (h *BufPane) SaveCmd(args []string) {
|
|||
if len(args) == 0 {
|
||||
h.Save()
|
||||
} else {
|
||||
h.Buf.SaveAs(args[0])
|
||||
err := h.Buf.SaveAs(args[0])
|
||||
if err != nil {
|
||||
InfoBar.Error(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue