Fix +workspace/delete initially filtering workspaces

SPC u SPC TAB d will prompt you for the workspace you want to delete,
with the name of the current workspace prefilled into the the
minibuffer. This filters out all other workspaces from the get go, which
may fool you into thinking you can only delete the current workspace.

Now it only selects the current workspace by default, without filtering
them.
This commit is contained in:
Henrik Lissner 2019-09-29 12:50:20 -04:00
parent ad1a7fd1ad
commit 060f6a36d3
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -240,7 +240,7 @@ workspace to delete."
(if current-prefix-arg
(completing-read (format "Delete workspace (default: %s): " current-name)
(+workspace-list-names)
nil nil current-name)
nil nil nil nil current-name)
current-name))))
(condition-case-unless-debug ex
(let ((workspaces (+workspace-list-names)))