summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/tab-bar.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index 52245dd78f8..b7de64d4ae9 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -271,7 +271,7 @@ from all windows in the window configuration."
(defun tab-bar-tab-name-current ()
"Generate tab name from the buffer of the selected window."
- (window-buffer (minibuffer-selected-window)))
+ (buffer-name (window-buffer (minibuffer-selected-window))))
(defun tab-bar-tab-name-current-with-count ()
"Generate tab name from the buffer of the selected window.