aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2011-08-02 07:57:48 -0400
committerRuss Cox <rsc@swtch.com>2011-08-02 07:57:48 -0400
commitda7e3a5d39b3acf930ca5714aed4826435cb1e13 (patch)
tree3b97df7da1ff696fc397649895d64080982004de /src
parent65a5e5fe46b9ff928babbef063030c62fafc6b43 (diff)
downloadplan9port-da7e3a5d39b3acf930ca5714aed4826435cb1e13.tar.gz
plan9port-da7e3a5d39b3acf930ca5714aed4826435cb1e13.tar.bz2
plan9port-da7e3a5d39b3acf930ca5714aed4826435cb1e13.zip
acme: fix iq1 adjust bug
R=rsc http://codereview.appspot.com/4816066
Diffstat (limited to 'src')
-rw-r--r--src/cmd/acme/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/acme/text.c b/src/cmd/acme/text.c
index ed0fc0c9..e5541a69 100644
--- 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);