acme: fix acme Edit abort

This commit is contained in:
Rob Pike 2008-03-07 07:16:37 -05:00
parent 7ed58eab75
commit 5e22f11b97

View file

@ -416,8 +416,10 @@ move(File *f, Address addr2)
}else if(addr.r.q0 >= addr2.r.q1){ }else if(addr.r.q0 >= addr2.r.q1){
copy(f, addr2); copy(f, addr2);
elogdelete(f, addr.r.q0, addr.r.q1); elogdelete(f, addr.r.q0, addr.r.q1);
}else if(addr.r.q0==addr2.r.q0 && addr.r.q1==addr2.r.q1){
; /* move to self; no-op */
}else }else
error("move overlaps itself"); editerror("move overlaps itself");
} }
int int