mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Fix #5176: don't prompt on gt/gT (tab switch)
This commit is contained in:
@ -5,14 +5,14 @@
|
|||||||
(evil-define-command +tabs:next-or-goto (index)
|
(evil-define-command +tabs:next-or-goto (index)
|
||||||
"Switch to the next tab, or to INDEXth tab if a count is given."
|
"Switch to the next tab, or to INDEXth tab if a count is given."
|
||||||
(interactive "<C>")
|
(interactive "<C>")
|
||||||
(if current-prefix-arg
|
(if index
|
||||||
(centaur-tabs-select-visible-nth-tab current-prefix-arg)
|
(centaur-tabs-select-visible-nth-tab index)
|
||||||
(centaur-tabs-forward)))
|
(centaur-tabs-forward)))
|
||||||
|
|
||||||
;;;###autoload (autoload '+tabs:previous-or-goto "ui/tabs/autoload" nil t)
|
;;;###autoload (autoload '+tabs:previous-or-goto "ui/tabs/autoload" nil t)
|
||||||
(evil-define-command +tabs:previous-or-goto (index)
|
(evil-define-command +tabs:previous-or-goto (index)
|
||||||
"Switch to the previous tab, or to INDEXth tab if a count is given."
|
"Switch to the previous tab, or to INDEXth tab if a count is given."
|
||||||
(interactive "<C>")
|
(interactive "<C>")
|
||||||
(if current-prefix-arg
|
(if index
|
||||||
(centaur-tabs-select-visible-nth-tab current-prefix-arg)
|
(centaur-tabs-select-visible-nth-tab index)
|
||||||
(centaur-tabs-backward)))
|
(centaur-tabs-backward)))
|
||||||
|
Reference in New Issue
Block a user