Fix #5176: don't prompt on gt/gT (tab switch)

This commit is contained in:
Henrik Lissner 2021-07-08 15:24:18 -04:00
parent 57026c4b70
commit 1a96f5b002

View file

@ -5,14 +5,14 @@
(evil-define-command +tabs:next-or-goto (index)
"Switch to the next tab, or to INDEXth tab if a count is given."
(interactive "<C>")
(if current-prefix-arg
(centaur-tabs-select-visible-nth-tab current-prefix-arg)
(if index
(centaur-tabs-select-visible-nth-tab index)
(centaur-tabs-forward)))
;;;###autoload (autoload '+tabs:previous-or-goto "ui/tabs/autoload" nil t)
(evil-define-command +tabs:previous-or-goto (index)
"Switch to the previous tab, or to INDEXth tab if a count is given."
(interactive "<C>")
(if current-prefix-arg
(centaur-tabs-select-visible-nth-tab current-prefix-arg)
(if index
(centaur-tabs-select-visible-nth-tab index)
(centaur-tabs-backward)))