~torresjrjr/public-inbox

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

Curtis Arthaud <uku82@gmx.fr>
Details
Message ID
<20240316093519.4030-2-uku82@gmx.fr>
DKIM signature
pass
Download raw message
Patch: +1 -1
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
Curtis Arthaud <uku82@gmx.fr>
Details
Message ID
<CZV5DIPXC24R.1N125Z2DJB9RN@gmx.fr>
In-Reply-To
<20240316093519.4030-2-uku82@gmx.fr> (view parent)
DKIM signature
pass
Download raw message
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).
Reply to thread Export thread (mbox)