diff options
| author | Charles.Forsyth <devnull@localhost> | 2008-01-09 22:46:18 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2008-01-09 22:46:18 +0000 |
| commit | 85620a8011570830a70e5c3b9394ea740655da33 (patch) | |
| tree | c6edcbe7a66c062c7ba888a08f16f6ce2724fbe5 /appl/acme | |
| parent | 38b761e890b1497089b6d623ae8bee952d1b8cc0 (diff) | |
20080109
Diffstat (limited to 'appl/acme')
| -rw-r--r-- | appl/acme/ecmd.b | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/appl/acme/ecmd.b b/appl/acme/ecmd.b index b85b5bb1..c31643f1 100644 --- a/appl/acme/ecmd.b +++ b/appl/acme/ecmd.b @@ -448,8 +448,10 @@ move(f: ref File, addr2: Address) }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"); } m_cmd(t: ref Text, cp: ref Cmd): int |
