Merge pull request #511 from amosbird/develop

fix workspace switch-left cycle.
This commit is contained in:
Henrik Lissner 2018-04-18 00:19:43 -04:00 committed by GitHub
commit 693942e438
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -361,7 +361,7 @@ end of the workspace list."
(index (cl-position current-name persps)))
(when (= perspc 1)
(user-error "No other workspaces"))
(+workspace/switch-to (% (+ index n) perspc))
(+workspace/switch-to (% (+ index n perspc) perspc))
(unless (called-interactively-p 'interactive)
(+workspace/display)))
('user-error (+workspace-error (cadr ex) t))