Skip to content

Commit

Permalink
[Tab Bar] Correct method for getting current tab
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjensen authored and Alexander-Miller committed Dec 2, 2024
1 parent 2fd7745 commit 4364a66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extra/treemacs-tab-bar.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
(cl-defmethod treemacs-scope->current-scope ((_ (subclass treemacs-tab-bar-scope)))
"Get the current tab as scope.
Return symbol `none' unless variable `tab-bar-mode' is non-nil."
(if tab-bar-mode
(cdr (assq 'name (tab-bar-get-buffer-tab nil)))
(if tab-bar-mode
(cdr (assq 'name (tab-bar--current-tab)))
'none))

(cl-defmethod treemacs-scope->current-scope-name ((_ (subclass treemacs-tab-bar-scope)) tab)
Expand Down

0 comments on commit 4364a66

Please sign in to comment.