ed

[hare] The standard editor
Log | Files | Refs | README | LICENSE

commit 7901872d99d45f86d400af80c05960bc2781f1d3
parent f946d8069cdbb17baba376dec532e1b11285657e
Author: Byron Torres <b@torresjrjr.com>
Date:   Sun, 17 Mar 2024 16:11:22 +0000

cmd_write(): dont set modified when write to shell

Diffstat:
Mcommand.ha | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/command.ha b/command.ha @@ -667,8 +667,8 @@ fn cmd_write(s: *Session, cmd: *Command) (void | Error) = { if (!s.suppressmode) fmt::println(sz)!; - if (a == 1 && b == len(s.buf.lines)-1) - // the entire buffer has been written. + if (proc is void && a == 1 && b == len(s.buf.lines)-1) + // the entire buffer has been written to a file. s.buf.modified = false; if (cmd.suffix == 'q') {