diff options
author | Juri Linkov <juri@linkov.net> | 2021-12-12 20:25:54 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2021-12-12 20:25:54 +0200 |
commit | 62139aeb42e286b51afe7dd6045ba7f5519593fc (patch) | |
tree | 5971131cba82bfe06f07bb63815880201c89f888 | |
parent | ea8422204f1fbd354e4d25b8c99fd4916db87296 (diff) | |
download | emacs-62139aeb42e286b51afe7dd6045ba7f5519593fc.tar.gz |
* 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
-rw-r--r-- | lisp/tab-bar.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index cfd766d5495..68d28306dd9 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. |