mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
acme: fix arrow near end of text
R=rsc CC=plan9port.codebot http://codereview.appspot.com/5399050
This commit is contained in:
parent
e067d2ea1f
commit
81c30b5a75
2 changed files with 5 additions and 6 deletions
|
@ -30,6 +30,7 @@ Peter Saveliev <svinota.saveliev@gmail.com>
|
|||
Richard Miller <millerresearch@gmail.com>
|
||||
Rob Pike <robpike@gmail.com>
|
||||
Russ Cox <rsc@swtch.com>
|
||||
Sean McKean <smckean83@gmail.com>
|
||||
Tim Newsham <tim.newsham@gmail.com>
|
||||
Tony Lainson <t.lainson@gmail.com>
|
||||
Venkatesh Srinivas <extrudedaluminiu@gmail.com>
|
||||
|
|
|
@ -671,16 +671,14 @@ texttype(Text *t, Rune r)
|
|||
rp = &r;
|
||||
switch(r){
|
||||
case Kleft:
|
||||
if(t->q0 > 0){
|
||||
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);
|
||||
if(t->q1 < t->file->b.nc)
|
||||
textshow(t, t->q1+1, t->q1+1, TRUE);
|
||||
}
|
||||
return;
|
||||
case Kdown:
|
||||
if(t->what == Tag)
|
||||
|
|
Loading…
Reference in a new issue