[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master c3bd60c 041/184: ivy.el (ivy--occur-press-update-window):

From: Oleh Krehel
Subject: [elpa] master c3bd60c 041/184: ivy.el (ivy--occur-press-update-window): Don't error if buffer was killed
Date: Wed, 16 Oct 2019 13:14:45 -0400 (EDT)

branch: master
commit c3bd60cbd7468ccb83f8562f3bb28e57a6369f34
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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 
      (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)))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]