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)
|
nil nil current-name)
|
||||||
current-name))))
|
current-name))))
|
||||||
(condition-case-unless-debug ex
|
(condition-case-unless-debug ex
|
||||||
(let ((workspaces (length (+workspace-list-names))))
|
(let ((workspaces (+workspace-list-names)))
|
||||||
(cond ((> workspaces 1)
|
(cond ((> (length workspaces) 1)
|
||||||
(+workspace-delete name)
|
(+workspace-delete name)
|
||||||
(+workspace-switch
|
(+workspace-switch
|
||||||
(if (+workspace-exists-p +workspace--last)
|
(if (+workspace-exists-p +workspace--last)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue