diff options
| author | Richard M. Stallman | 1997-03-26 06:05:58 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-03-26 06:05:58 +0000 |
| commit | 48cbe093bb7843d7ef1f19314fd7666a4688d460 (patch) | |
| tree | 2d4d221ca4d039eaef7121a95544ba166834be3a | |
| parent | 59f23005cfdbf88dfa0897c7e18ded2dec0970d2 (diff) | |
| download | emacs-48cbe093bb7843d7ef1f19314fd7666a4688d460.tar.gz emacs-48cbe093bb7843d7ef1f19314fd7666a4688d460.zip | |
(outline-discard-overlays): Fix the case
where an overlay extends on both sides of the region.
| -rw-r--r-- | lisp/textmodes/outline.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/outline.el b/lisp/textmodes/outline.el index 6116c8116da..3b7ae6c076d 100644 --- a/lisp/textmodes/outline.el +++ b/lisp/textmodes/outline.el | |||
| @@ -397,7 +397,8 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden." | |||
| 397 | (if (> (overlay-end o) end) | 397 | (if (> (overlay-end o) end) |
| 398 | (let ((o1 (outline-copy-overlay o))) | 398 | (let ((o1 (outline-copy-overlay o))) |
| 399 | (move-overlay o1 (overlay-start o1) beg) | 399 | (move-overlay o1 (overlay-start o1) beg) |
| 400 | (move-overlay o (overlay-start o) beg))) | 400 | (move-overlay o end (overlay-end o))) |
| 401 | (move-overlay o (overlay-start o) beg)) | ||
| 401 | (if (> (overlay-end o) end) | 402 | (if (> (overlay-end o) end) |
| 402 | (move-overlay o end (overlay-end o)) | 403 | (move-overlay o end (overlay-end o)) |
| 403 | (delete-overlay o))))) | 404 | (delete-overlay o))))) |