branch: master
commit 572c2aa7950974d685e8a025cb68fef841a6b51d
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    Enable read-only-mode for ivy-occur
    
    Fixes #720
---
 ivy.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ivy.el b/ivy.el
index f5305c5..5efa4b0 100644
--- a/ivy.el
+++ b/ivy.el
@@ -3338,6 +3338,7 @@ There is no limit on the number of *ivy-occur* buffers."
               (funcall occur-fn)
             (ivy-occur-mode)
             (insert (format "%d candidates:\n" (length ivy--old-cands)))
+            (read-only-mode)
             (ivy--occur-insert-lines
              (mapcar
               (lambda (cand) (concat "    " cand))

Reply via email to