Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Make <number>gT always wrap around
Browse files Browse the repository at this point in the history
  • Loading branch information
wasamasa committed Mar 31, 2014
1 parent e747436 commit b86b409
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions eyebrowse.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

;; Author: Vasilij Schneidermann <[email protected]>
;; URL: https://github.com/wasamasa/eyebrowse
;; Version: 0.2
;; Version: 0.2.1
;; Package-Requires: ((dash "2.4.0") (s "1.4.0") (emacs "24"))
;; Keywords: convenience

Expand Down Expand Up @@ -273,7 +273,10 @@ switch COUNT window configs backwards and always wrap around."
(let* ((match (assq eyebrowse-current-slot eyebrowse-window-configs))
(index (-elem-index match eyebrowse-window-configs)))
(if count
(eyebrowse-prev-window-config (when (> count 1) (eyebrowse-prev-window-config (1- count))))
(let ((eyebrowse-wrap-around-p t))
(eyebrowse-prev-window-config
(when (> count 1)
(eyebrowse-prev-window-config (1- count)))))
(when index
(if (> index 0)
(eyebrowse-switch-to-window-config
Expand Down

0 comments on commit b86b409

Please sign in to comment.