Skip to content

Commit 9003243

Browse files
Removing the use of SetName() for file buffers
1 parent c9f1220 commit 9003243

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

internal/action/actions.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,6 @@ func (h *BufPane) saveBufToFile(filename string, action string, callback func())
10421042
if err != nil {
10431043
InfoBar.Error(err)
10441044
} else {
1045-
h.Buf.SetName(filename)
10461045
InfoBar.Message("Saved " + filename)
10471046
if callback != nil {
10481047
callback()
@@ -1067,7 +1066,6 @@ func (h *BufPane) saveBufToFile(filename string, action string, callback func())
10671066
InfoBar.Error(err)
10681067
}
10691068
} else {
1070-
h.Buf.SetName(filename)
10711069
InfoBar.Message("Saved " + filename)
10721070
if callback != nil {
10731071
callback()

0 commit comments

Comments
 (0)