aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme/text.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-10-17 00:12:14 +0000
committerrsc <devnull@localhost>2004-10-17 00:12:14 +0000
commit63853aa06999bf26dd9590b864989f4f3008e694 (patch)
tree06fa965cc3e12f9a2a42d33a555af33c68bc4b51 /src/cmd/acme/text.c
parent0ffd63f553f9faa62b675f27c1cf9548d5e7c744 (diff)
downloadplan9port-63853aa06999bf26dd9590b864989f4f3008e694.tar.gz
plan9port-63853aa06999bf26dd9590b864989f4f3008e694.tar.bz2
plan9port-63853aa06999bf26dd9590b864989f4f3008e694.zip
bug fix in Zerox arrow handling from rob
Diffstat (limited to 'src/cmd/acme/text.c')
-rw-r--r--src/cmd/acme/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c
index 84e489f9..8aac0ac0 100644
--- a/src/cmd/acme/text.c
+++ b/src/cmd/acme/text.c
@@ -645,13 +645,13 @@ texttype(Text *t, Rune r)
switch(r){
case Kleft:
if(t->q0 > 0){
- textcommit(t, TRUE);
+ wincommit(t->w, t);
textshow(t, t->q0-1, t->q0-1, TRUE);
}
return;
case Kright:
if(t->q1 < t->file->b.nc){
- textcommit(t, TRUE);
+ wincommit(t->w, t);
textshow(t, t->q1+1, t->q1+1, TRUE);
}
return;