defuns-popup: correct redraw conditions

This commit is contained in:
Henrik Lissner 2016-06-06 23:50:55 -04:00
parent 957574180e
commit 79d5870b6f

View File

@ -81,8 +81,8 @@ current window."
(kill-buffer (window-buffer window)))
(doom-popup-mode -1))
(delete-window window)
(unless (and (< emacs-major-version 25) (not dont-redraw))
(redraw-frame)))))
(when (< emacs-major-version 25)
(unless dont-redraw (redraw-frame))))))
;;;###autoload
(defun doom/popup-close-all (&optional dont-kill dont-redraw)
@ -92,8 +92,7 @@ the display (unless DONT-REDRAW is non-nil)."
(mapc (lambda (w) (doom/popup-close w dont-kill t))
(doom/get-visible-windows (buffer-list)))
(when (< emacs-major-version 25)
(unless dont-redraw
(redraw-frame))))
(unless dont-redraw (redraw-frame))))
;;;###autoload
(defun doom/popup-last-buffer ()