Revise comments

This commit is contained in:
Henrik Lissner 2020-02-28 16:29:49 -05:00
parent ea01e850e4
commit 88dd15e204
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 6 additions and 8 deletions

View file

@ -78,11 +78,10 @@ stored in `persp-save-dir'.")
(let (persp-before-switch-functions)
;; The default perspective persp-mode creates is special and doesn't
;; represent a real persp object, so buffers can't really be assigned
;; to it, among other quirks. We hide the nil persp...
;; to it, among other quirks, so we get rid of it...
(when (equal (car persp-names-cache) persp-nil-name)
(pop persp-names-cache))
;; ...and create a *real* main workspace to fill this role, and hide
;; the nil perspective.
;; ...and create a *real* main workspace to fill this role.
(unless (or (persp-get-by-name +workspaces-main)
;; Start from 2 b/c persp-mode counts the nil workspace
(> (hash-table-count *persp-hash*) 2))