tbug fix in Zerox arrow handling from rob - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 63853aa06999bf26dd9590b864989f4f3008e694
(DIR) parent 0ffd63f553f9faa62b675f27c1cf9548d5e7c744
(HTM) Author: rsc <devnull@localhost>
Date: Sun, 17 Oct 2004 00:12:14 +0000
bug fix in Zerox arrow handling from rob
Diffstat:
M src/cmd/acme/text.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c
t@@ -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;