summaryrefslogtreecommitdiff
path: root/src/wasp-gizmo.el
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-18 03:04:31 -0400
committerLLLL Colonq <llll@colonq>2026-08-18 03:04:31 -0400
commit23cc4ab7b5695f77ffd15f5ee5e7cc414237642f (patch)
tree07ac5ee48cc3773664fda24b227618422b468ec9 /src/wasp-gizmo.el
parentf04ada478f4bfa5637744876f00ff56f85dcf552 (diff)
Diffstat (limited to 'src/wasp-gizmo.el')
-rw-r--r--src/wasp-gizmo.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasp-gizmo.el b/src/wasp-gizmo.el
index 677b2fb7..e0359c08 100644
--- a/src/wasp-gizmo.el
+++ b/src/wasp-gizmo.el
@@ -33,9 +33,9 @@
(defun w/gizmo-cycle-window (w)
"Cycle the gizmo in W."
(when-let*
- ((cur (buffer-name (window-buffer w)))
- (idx (--find-index (equal it cur) w/gizmo-buffer-names))
+ ((cur (window-buffer w))
(bufs (-non-nil (-map #'get-buffer w/gizmo-buffer-names)))
+ (idx (--find-index (equal it cur) bufs))
(nidx (mod (+ idx 1) (length bufs)))
(buf (nth nidx bufs)))
(set-window-buffer w buf)))