branch: master
commit c3bd60cbd7468ccb83f8562f3bb28e57a6369f34
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    ivy.el (ivy--occur-press-update-window): Don't error if buffer was killed
    
    The fall-back is still good enough.
---
 ivy.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index 06fde10..8ca0ae3 100644
--- a/ivy.el
+++ b/ivy.el
@@ -4735,8 +4735,7 @@ EVENT gives the mouse position."
     ((swiper swiper-isearch counsel-git-grep counsel-grep counsel-ag 
counsel-rg)
      (let ((window (ivy-state-window ivy-occur-last))
            (buffer (ivy-state-buffer ivy-occur-last)))
-       (if (not (buffer-live-p buffer))
-           (error "Buffer was killed")
+       (when (buffer-live-p buffer)
          (cond ((or (not (window-live-p window))
                     (equal window (selected-window)))
                 (save-selected-window

Reply via email to