Skip to content

Commit 95e9c8b

Browse files
committed
use read-buffer-to-switch in exwm-workspace-switch-to-buffer
read-buffer-to-switch elides the current buffer from the list of completions and selects a sane default.
1 parent 1c8101a commit 95e9c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exwm-workspace.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ INDEX must not exceed the current number of workspaces."
783783
(rename-buffer (substring (buffer-name) 1))))))
784784
(prog1
785785
(with-local-quit
786-
(list (get-buffer (read-buffer "Switch to buffer: " nil t))))
786+
(list (get-buffer (read-buffer-to-switch "Switch to buffer: "))))
787787
;; Hide buffers on other workspaces
788788
(unless exwm-workspace-show-all-buffers
789789
(dolist (pair exwm--id-buffer-alist)

0 commit comments

Comments
 (0)