This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
1
[PATCH ed] fix warnbuffermodified bug
Signed-off-by: Curtis Arthaud <uku82@gmx.fr>
---
command.ha | 2 + -
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/command.ha b/command.ha
index ccace0e..3340d20 100644
--- a/command.ha
+++ b/command.ha
@@ -734,7 +734,7 @@ fn cmd_write(s: *Session, cmd: *Command) (void | Error) = {
if (!s.suppressmode)
fmt::println(sz)!;
- if (a == 1 && b == len(s.buf.lines))
+ if (a == 1 && b == len(s.buf.lines)-1)
// the entire buffer has been written.
s.buf.modified = false;
--
2.44.0
Please ignore this patch,
it doesn't work correctly.
I think we need a deeper rework of the buffermodified logic,
I will look into it (possibly a bit slowly).