summaryrefslogtreecommitdiff
path: root/src/wasp-gizmo.el
diff options
context:
space:
mode:
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)))