diff options
author | Petter Rodhelind <petter.rodhelind@gmail.com> | 2017-03-18 20:36:00 +0100 |
---|---|---|
committer | Petter Rodhelind <petter.rodhelind@gmail.com> | 2017-03-18 20:36:00 +0100 |
commit | 1946a98eac87f35876bde087a24a2c1bb45437ab (patch) | |
tree | debe10c9937e0d5cda59acde60de0cdaf3c43ac5 /src/cmd | |
parent | 0fa7f352fc954b79f2d734a5c1c276df5dd1ffd3 (diff) | |
download | plan9port-1946a98eac87f35876bde087a24a2c1bb45437ab.tar.gz plan9port-1946a98eac87f35876bde087a24a2c1bb45437ab.tar.bz2 plan9port-1946a98eac87f35876bde087a24a2c1bb45437ab.zip |
Fix kdown when last line is empty
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/acme/text.c | 2 |
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++; |