diff options
author | Rob Pike <devnull@localhost> | 2008-03-07 07:16:37 -0500 |
---|---|---|
committer | Rob Pike <devnull@localhost> | 2008-03-07 07:16:37 -0500 |
commit | 5e22f11b97dc97ca6dd449d4efec1838c996cb0c (patch) | |
tree | 2ed0afdc00bdc0d8246d30beb522431073972261 | |
parent | 7ed58eab75180ba04d5582d6000f4a05da421ead (diff) | |
download | plan9port-5e22f11b97dc97ca6dd449d4efec1838c996cb0c.tar.gz plan9port-5e22f11b97dc97ca6dd449d4efec1838c996cb0c.tar.bz2 plan9port-5e22f11b97dc97ca6dd449d4efec1838c996cb0c.zip |
acme: fix acme Edit abort
-rw-r--r-- | src/cmd/acme/ecmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/acme/ecmd.c b/src/cmd/acme/ecmd.c index a507b50f..7c625747 100644 --- a/src/cmd/acme/ecmd.c +++ b/src/cmd/acme/ecmd.c @@ -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 |