plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit da7e3a5d39b3acf930ca5714aed4826435cb1e13
parent 65a5e5fe46b9ff928babbef063030c62fafc6b43
Author: Russ Cox <rsc@swtch.com>
Date:   Tue,  2 Aug 2011 07:57:48 -0400

acme: fix iq1 adjust bug

R=rsc
http://codereview.appspot.com/4816066

Diffstat:
Msrc/cmd/acme/text.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c @@ -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);