Skip to content

Commit c9f1220

Browse files
Updating SaveCmd to use saveBufToFile instead
1 parent 9835676 commit c9f1220

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/action/command.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -907,10 +907,7 @@ func (h *BufPane) SaveCmd(args []string) {
907907
if len(args) == 0 {
908908
h.Save()
909909
} else {
910-
err := h.Buf.SaveAs(args[0])
911-
if err != nil {
912-
InfoBar.Error(err)
913-
}
910+
h.saveBufToFile(args[0], "SaveAs", nil)
914911
}
915912
}
916913

0 commit comments

Comments
 (0)