diff options
author | Sean McKean <smckean83@gmail.com> | 2011-11-17 14:46:14 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2011-11-17 14:46:14 -0500 |
commit | 81c30b5a75cb5ae9a5175321a5f8a6049f0ac4e3 (patch) | |
tree | f4b73bf9651afac0ebff924139f9a44b9d11fc58 /src/cmd | |
parent | e067d2ea1f229658b91f6c5bf740a42ddec9da75 (diff) | |
download | plan9port-81c30b5a75cb5ae9a5175321a5f8a6049f0ac4e3.tar.gz plan9port-81c30b5a75cb5ae9a5175321a5f8a6049f0ac4e3.tar.bz2 plan9port-81c30b5a75cb5ae9a5175321a5f8a6049f0ac4e3.zip |
acme: fix arrow near end of text
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5399050
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/acme/text.c | 10 |
1 files changed, 4 insertions, 6 deletions
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) |