Removing the use of SetName() for file buffers

This commit is contained in:
Neko Box Coder 2025-03-12 19:24:36 +00:00
parent c9f12206e9
commit 9003243178
No known key found for this signature in database
GPG Key ID: E33FCF170345E0F5

View File

@ -1042,7 +1042,6 @@ func (h *BufPane) saveBufToFile(filename string, action string, callback func())
if err != nil {
InfoBar.Error(err)
} else {
h.Buf.SetName(filename)
InfoBar.Message("Saved " + filename)
if callback != nil {
callback()
@ -1067,7 +1066,6 @@ func (h *BufPane) saveBufToFile(filename string, action string, callback func())
InfoBar.Error(err)
}
} else {
h.Buf.SetName(filename)
InfoBar.Message("Saved " + filename)
if callback != nil {
callback()