summaryrefslogtreecommitdiff
path: root/exwm-buffer-groups.el
diff options
context:
space:
mode:
Diffstat (limited to 'exwm-buffer-groups.el')
-rw-r--r--exwm-buffer-groups.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/exwm-buffer-groups.el b/exwm-buffer-groups.el
index a16223f..8cbaed4 100644
--- a/exwm-buffer-groups.el
+++ b/exwm-buffer-groups.el
@@ -84,6 +84,8 @@ workspace."
(elt exwm-buffer-groups-buffers
exwm-workspace-current-index)))
(current-buffer (buffer-name (other-buffer (current-buffer)))))
+ ;; Clean up so that "nil" isn't showing up in the list.
+ (exwm-buffer-groups--remove-buffers)
(completing-read "Switch to buffer: " buffers-in-workspace
nil nil nil nil current-buffer))))
(switch-to-buffer buffer-or-name))