mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
acme: fix acme Edit abort
This commit is contained in:
parent
7ed58eab75
commit
5e22f11b97
1 changed files with 3 additions and 1 deletions
|
@ -416,8 +416,10 @@ move(File *f, Address addr2)
|
|||
}else if(addr.r.q0 >= addr2.r.q1){
|
||||
copy(f, addr2);
|
||||
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
|
||||
error("move overlaps itself");
|
||||
editerror("move overlaps itself");
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in a new issue