summaryrefslogtreecommitdiff
path: root/src/gizmo/wasp-cyclone.el
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2025-06-09 18:31:55 -0400
committerLLLL Colonq <llll@colonq>2025-06-09 18:31:55 -0400
commit5bad5320032a8fc477e9f2527d23036c41ac023e (patch)
tree0d6643223b94d2e8413c77487b49918a9413b38b /src/gizmo/wasp-cyclone.el
parent5d003af92aff89cc600c1125e2e8767fc88b7ae4 (diff)
Update
Diffstat (limited to 'src/gizmo/wasp-cyclone.el')
-rw-r--r--src/gizmo/wasp-cyclone.el3
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 ()