diff options
Diffstat (limited to 'src/gizmo/wasp-cyclone.el')
| -rw-r--r-- | src/gizmo/wasp-cyclone.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gizmo/wasp-cyclone.el b/src/gizmo/wasp-cyclone.el index 183175c9..6ad7a4f8 100644 --- a/src/gizmo/wasp-cyclone.el +++ b/src/gizmo/wasp-cyclone.el @@ -48,7 +48,8 @@ (defun w/gizmo-ensure-shown (buf) "Ensure that BUF is shown in one of the windows." (unless (--any (s-equals? (buffer-name (window-buffer it)) (buffer-name (get-buffer buf))) w/gizmo-windows) - (set-window-buffer (car w/gizmo-windows) buf))) + (when (window-live-p (car w/gizmo-windows)) + (set-window-buffer (car w/gizmo-windows) buf)))) (defvar w/gizmo-cycle-timer nil) (defun w/run-gizmo-cycle-timer () |
