Skip to content

Commit

Permalink
Handle unbound dispatch keys in popper-echo
Browse files Browse the repository at this point in the history
  • Loading branch information
karthink committed Nov 16, 2021
1 parent 2650056 commit 4d58a6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions popper-echo.el
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,10 @@ This is used to create functions for switching between popups
quickly."
(lambda (&optional arg)
(interactive "P")
(unless arg (popper-close-latest))
(display-buffer (nth i buf-list))
(popper--update-popups)
(when-let ((buf (nth i buf-list)))
(unless arg (popper-close-latest))
(display-buffer buf)
(popper--update-popups))
(when popper-echo-dispatch-persist (popper-echo))))

(defun popper-echo--dispatch-kill (i buf-list)
Expand Down

0 comments on commit 4d58a6d

Please sign in to comment.