From 1a96f5b002c479627453d6004597bf8333c6b2be Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 8 Jul 2021 15:24:18 -0400 Subject: [PATCH] Fix #5176: don't prompt on gt/gT (tab switch) --- modules/ui/tabs/autoload.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ui/tabs/autoload.el b/modules/ui/tabs/autoload.el index 3970f5eef..38a3f8a64 100644 --- a/modules/ui/tabs/autoload.el +++ b/modules/ui/tabs/autoload.el @@ -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 "") - (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 "") - (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)))