Skip to content

Commit

Permalink
Fix Ace labels do not work with more than 9 tabs
Browse files Browse the repository at this point in the history
Ref: #231
  • Loading branch information
gpanago committed May 25, 2024
1 parent 3346b23 commit ae5ee19
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions centaur-tabs-functions.el
Original file line number Diff line number Diff line change
Expand Up @@ -727,17 +727,17 @@ Call `centaur-tabs-tab-label-function' to obtain a label for TAB."
(when centaur-tabs-show-jump-identifier
(when (or (eq centaur-tabs-show-jump-identifier 'always)
centaur-tabs-ace-jump-active)
(propertize
(format "%c" (nth (cl-position tab
(centaur-tabs-view (centaur-tabs-current-tabset t)))
centaur-tabs-ace-jump-keys))
'centaur-tabs-tab tab
'face (if selected-p
'centaur-tabs-jump-identifier-selected
'centaur-tabs-jump-identifier-unselected)
'pointer centaur-tabs-mouse-pointer
'help-echo buf-file-name
'local-map centaur-tabs-default-map)))
(when-let ((position (nth (cl-position tab (centaur-tabs-view (centaur-tabs-current-tabset t)))
centaur-tabs-ace-jump-keys)))
(propertize
(format "%c" position)
'centaur-tabs-tab tab
'face (if selected-p
'centaur-tabs-jump-identifier-selected
'centaur-tabs-jump-identifier-unselected)
'pointer centaur-tabs-mouse-pointer
'help-echo buf-file-name
'local-map centaur-tabs-default-map))))

;; close button and/or modified marker
(unless centaur-tabs-ace-jump-active
Expand Down

0 comments on commit ae5ee19

Please sign in to comment.