diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 87be2fa5..e5c5eb6a 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -30,6 +30,7 @@ Peter Saveliev Richard Miller Rob Pike Russ Cox +Sean McKean Tim Newsham Tony Lainson Venkatesh Srinivas diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c index 57fd8212..3c08cd64 100644 --- a/src/cmd/acme/text.c +++ b/src/cmd/acme/text.c @@ -671,16 +671,14 @@ texttype(Text *t, Rune r) rp = &r; switch(r){ case Kleft: - if(t->q0 > 0){ - typecommit(t); + typecommit(t); + if(t->q0 > 0) textshow(t, t->q0-1, t->q0-1, TRUE); - } return; case Kright: - if(t->q1 < t->file->b.nc){ - typecommit(t); + typecommit(t); + if(t->q1 < t->file->b.nc) textshow(t, t->q1+1, t->q1+1, TRUE); - } return; case Kdown: if(t->what == Tag)