commit 81c30b5a75cb5ae9a5175321a5f8a6049f0ac4e3 from: Sean McKean via: Russ Cox date: Thu Nov 17 19:46:14 2011 UTC acme: fix arrow near end of text R=rsc CC=plan9port.codebot http://codereview.appspot.com/5399050 commit - e067d2ea1f229658b91f6c5bf740a42ddec9da75 commit + 81c30b5a75cb5ae9a5175321a5f8a6049f0ac4e3 blob - 87be2fa59f79e4abb559557dd462b752407aa544 blob + e5c5eb6a74491ff1603531f570e97b5ef0061351 --- CONTRIBUTORS +++ CONTRIBUTORS @@ -30,6 +30,7 @@ Peter Saveliev Richard Miller Rob Pike Russ Cox +Sean McKean Tim Newsham Tony Lainson Venkatesh Srinivas blob - 57fd8212932d22b1eaf3067af3a94ca352c12ffb blob + 3c08cd64a34d3a5848497e034c9ecd2ebc82029c --- src/cmd/acme/text.c +++ 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)