acme: fix iq1 adjust bug

R=rsc
http://codereview.appspot.com/4816066
This commit is contained in:
Russ Cox 2011-08-02 07:57:48 -04:00
parent 65a5e5fe46
commit da7e3a5d39

View file

@ -474,7 +474,7 @@ textdelete(Text *t, uint q0, uint q1, int tofile)
}
}
}
if(t->iq1 < t->q0)
if(q0 < t->iq1)
t->iq1 -= min(n, t->iq1-q0);
if(q0 < t->q0)
t->q0 -= min(n, t->q0-q0);