Skip to content

Commit

Permalink
Use read-buffer-to-switch in exwm-workspace-switch-to-buffer
Browse files Browse the repository at this point in the history
read-buffer-to-switch elides the current buffer from the list of
completions and selects a sane default.
  • Loading branch information
fjl committed Sep 30, 2016
1 parent 1c8101a commit 7d732d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exwm-workspace.el
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ INDEX must not exceed the current number of workspaces."
(rename-buffer (substring (buffer-name) 1))))))
(prog1
(with-local-quit
(list (get-buffer (read-buffer "Switch to buffer: " nil t))))
(list (get-buffer (read-buffer-to-switch "Switch to buffer: "))))
;; Hide buffers on other workspaces
(unless exwm-workspace-show-all-buffers
(dolist (pair exwm--id-buffer-alist)
Expand Down

0 comments on commit 7d732d7

Please # to comment.