mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
9term: fix insert
R=rsc CC=plan9port.codebot http://codereview.appspot.com/4952066
This commit is contained in:
parent
a287dbab23
commit
53000799be
1 changed files with 2 additions and 2 deletions
|
@ -1621,10 +1621,10 @@ winsert(Window *w, Rune *r, int n, uint q0)
|
|||
w->q0 += n;
|
||||
if(q0 < w->qh)
|
||||
w->qh += n;
|
||||
if(q0 < w->org)
|
||||
w->org += n;
|
||||
if(q0 < w->iq1)
|
||||
w->iq1 += n;
|
||||
if(q0 < w->org)
|
||||
w->org += n;
|
||||
else if(q0 <= w->org+w->f.nchars)
|
||||
frinsert(&w->f, r, r+n, q0-w->org);
|
||||
return q0;
|
||||
|
|
Loading…
Reference in a new issue