mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-25 18:07:07 +09:00
actions: Don't overwrite the buffers Path
This is fully handled within the buffers `save` domain.
This commit is contained in:
@@ -1042,7 +1042,6 @@ func (h *BufPane) saveBufToFile(filename string, action string, callback func())
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
InfoBar.Error(err)
|
InfoBar.Error(err)
|
||||||
} else {
|
} else {
|
||||||
h.Buf.Path = filename
|
|
||||||
h.Buf.SetName(filename)
|
h.Buf.SetName(filename)
|
||||||
InfoBar.Message("Saved " + filename)
|
InfoBar.Message("Saved " + filename)
|
||||||
if callback != nil {
|
if callback != nil {
|
||||||
@@ -1068,7 +1067,6 @@ func (h *BufPane) saveBufToFile(filename string, action string, callback func())
|
|||||||
InfoBar.Error(err)
|
InfoBar.Error(err)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
h.Buf.Path = filename
|
|
||||||
h.Buf.SetName(filename)
|
h.Buf.SetName(filename)
|
||||||
InfoBar.Message("Saved " + filename)
|
InfoBar.Message("Saved " + filename)
|
||||||
if callback != nil {
|
if callback != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user