aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acme
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2010-01-12 11:11:19 -0800
committerRuss Cox <rsc@swtch.com>2010-01-12 11:11:19 -0800
commit68a6e0c0d03af1026f1b903bb071977543b7a939 (patch)
tree01db2aec99eb9d31f31bda997968b639892992c8 /src/cmd/acme
parentef27bfa4ab95825fc2f7c733064b8c96ee17d73e (diff)
downloadplan9port-68a6e0c0d03af1026f1b903bb071977543b7a939.tar.gz
plan9port-68a6e0c0d03af1026f1b903bb071977543b7a939.tar.bz2
plan9port-68a6e0c0d03af1026f1b903bb071977543b7a939.zip
acme: let Edit redo when file is clean
R=, rsc CC= http://codereview.appspot.com/188042
Diffstat (limited to 'src/cmd/acme')
-rw-r--r--src/cmd/acme/ecmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/acme/ecmd.c b/src/cmd/acme/ecmd.c
index 575c5a27..bdcaf9f5 100644
--- a/src/cmd/acme/ecmd.c
+++ b/src/cmd/acme/ecmd.c
@@ -544,7 +544,7 @@ u_cmd(Text *t, Cmd *cp)
flag = FALSE;
}
oseq = -1;
- while(n-->0 && t->file->seq!=0 && t->file->seq!=oseq){
+ while(n-->0 && t->file->seq!=oseq){
oseq = t->file->seq;
undo(t, nil, nil, flag, 0, nil, 0);
}