aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/acme')
-rw-r--r--src/cmd/acme/text.c2
1 files changed, 1 insertions, 1 deletions
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(q0<t->file->b.nc && textreadc(t, q0)!='\n')
q0++;
- if (q0+1 < t->file->b.nc)
+ if (q0+1 <= t->file->b.nc)
q0++;
while(q0<t->file->b.nc && textreadc(t, q0)!='\n' && nnb--)
q0++;