[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 62139ae: * lisp/tab-bar.el (tab-bar-switch-to-last-tab): Add 'a
From: |
Juri Linkov |
Subject: |
emacs-28 62139ae: * lisp/tab-bar.el (tab-bar-switch-to-last-tab): Add 'abs' for precautions. |
Date: |
Sun, 12 Dec 2021 13:27:26 -0500 (EST) |
branch: emacs-28
commit 62139aeb42e286b51afe7dd6045ba7f5519593fc
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>
* lisp/tab-bar.el (tab-bar-switch-to-last-tab): Add 'abs' for precautions.
https://lists.gnu.org/archive/html/emacs-devel/2021-11/msg01149.html
---
lisp/tab-bar.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index cfd766d..68d2830 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -1175,7 +1175,7 @@ which means the last tab on the tab bar. For example,
`C-u 2
<MODIFIER>-9' selects the tab before the last tab."
(interactive "p")
(tab-bar-select-tab (- (length (funcall tab-bar-tabs-function))
- (1- (or arg 1)))))
+ (1- (abs (or arg 1))))))
(defun tab-bar-switch-to-recent-tab (&optional arg)
"Switch to ARGth most recently visited tab.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-28 62139ae: * lisp/tab-bar.el (tab-bar-switch-to-last-tab): Add 'abs' for precautions.,
Juri Linkov <=