mirror of
https://github.com/Hopiu/micro.git
synced 2026-03-16 22:10:26 +00:00
actions: Don't overwrite the buffers Path
This is fully handled within the buffers `save` domain.
This commit is contained in:
parent
9b53257e50
commit
1663a1a6e4
1 changed files with 0 additions and 2 deletions
|
|
@ -1042,7 +1042,6 @@ func (h *BufPane) saveBufToFile(filename string, action string, callback func())
|
|||
if err != nil {
|
||||
InfoBar.Error(err)
|
||||
} else {
|
||||
h.Buf.Path = filename
|
||||
h.Buf.SetName(filename)
|
||||
InfoBar.Message("Saved " + filename)
|
||||
if callback != nil {
|
||||
|
|
@ -1068,7 +1067,6 @@ func (h *BufPane) saveBufToFile(filename string, action string, callback func())
|
|||
InfoBar.Error(err)
|
||||
}
|
||||
} else {
|
||||
h.Buf.Path = filename
|
||||
h.Buf.SetName(filename)
|
||||
InfoBar.Message("Saved " + filename)
|
||||
if callback != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue