mirror of
https://github.com/zyedidia/micro.git
synced 2025-06-18 14:55:38 -04:00
Removing the use of SetName() for file buffers
This commit is contained in:
parent
c9f12206e9
commit
9003243178
@ -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.SetName(filename)
|
|
||||||
InfoBar.Message("Saved " + filename)
|
InfoBar.Message("Saved " + filename)
|
||||||
if callback != nil {
|
if callback != nil {
|
||||||
callback()
|
callback()
|
||||||
@ -1067,7 +1066,6 @@ func (h *BufPane) saveBufToFile(filename string, action string, callback func())
|
|||||||
InfoBar.Error(err)
|
InfoBar.Error(err)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
h.Buf.SetName(filename)
|
|
||||||
InfoBar.Message("Saved " + filename)
|
InfoBar.Message("Saved " + filename)
|
||||||
if callback != nil {
|
if callback != nil {
|
||||||
callback()
|
callback()
|
||||||
|
Loading…
Reference in New Issue
Block a user