diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/textmodes/outline.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/textmodes/outline.el b/lisp/textmodes/outline.el index 07b704cc2d..1967d3d964 100644 --- a/lisp/textmodes/outline.el +++ b/lisp/textmodes/outline.el @@ -405,9 +405,10 @@ If FLAG is nil then text is shown, while if FLAG is t the text is hidden." (end-of-line) (outline-discard-overlays (point) to 'outline) (if flag - (let ((o (make-overlay (point) to))) - (overlay-put o 'invisible 'outline) - (overlay-put o 'outline t))))) + (let ((o (make-overlay (point) to))) + (overlay-put o 'invisible 'outline) + (overlay-put o 'isearch-open-invisible + 'outline-isearch-open-invisible))))) (run-hooks 'outline-view-change-hook)) ;; Exclude from the region BEG ... END all overlays |