From 1946a98eac87f35876bde087a24a2c1bb45437ab Mon Sep 17 00:00:00 2001 From: Petter Rodhelind Date: Sat, 18 Mar 2017 20:36:00 +0100 Subject: Fix kdown when last line is empty --- src/cmd/acme/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c index be32ad76..b8c33d12 100644 --- a/src/cmd/acme/text.c +++ b/src/cmd/acme/text.c @@ -688,7 +688,7 @@ texttype(Text *t, Rune r) nnb = textbswidth(t, 0x15); while(q0file->b.nc && textreadc(t, q0)!='\n') q0++; - if (q0+1 < t->file->b.nc) + if (q0+1 <= t->file->b.nc) q0++; while(q0file->b.nc && textreadc(t, q0)!='\n' && nnb--) q0++; -- cgit v1.2.3