From 1663a1a6e4957e47404e6c47de9c78a29f79efe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6ran=20Karl?= <3951388+JoeKar@users.noreply.github.com> Date: Tue, 1 Oct 2024 21:40:24 +0200 Subject: [PATCH] actions: Don't overwrite the buffers `Path` This is fully handled within the buffers `save` domain. --- internal/action/actions.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/action/actions.go b/internal/action/actions.go index 3505f2e1..87e81d1b 100644 --- a/internal/action/actions.go +++ b/internal/action/actions.go @@ -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 {