Fix +workspace/delete when one workspace is left
This commit is contained in:
parent
edc09ecab8
commit
e2979e5b82
1 changed files with 2 additions and 2 deletions
|
@ -289,8 +289,8 @@ workspace to delete."
|
|||
nil nil current-name)
|
||||
current-name))))
|
||||
(condition-case-unless-debug ex
|
||||
(let ((workspaces (length (+workspace-list-names))))
|
||||
(cond ((> workspaces 1)
|
||||
(let ((workspaces (+workspace-list-names)))
|
||||
(cond ((> (length workspaces) 1)
|
||||
(+workspace-delete name)
|
||||
(+workspace-switch
|
||||
(if (+workspace-exists-p +workspace--last)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue