Commit f458ca28 authored by Juri Linkov's avatar Juri Linkov

* lisp/tab-line.el: Display truncated tab name in the tooltip.

parent 5bf45ec4
Pipeline #3033 failed with stage
in 6 minutes and 37 seconds
......@@ -126,7 +126,9 @@ Reduce tab width proportionally to space taken by other tabs."
(max 1 (- (/ (window-width) (length buffers)) 3)))))
(if (or (not limit) (< (length tab-name) limit))
tab-name
(concat tab-line-tab-name-ellipsis (substring tab-name (- limit))))))
(propertize (concat tab-line-tab-name-ellipsis
(substring tab-name (- limit)))
'help-echo tab-name))))
(defun tab-line-format ()
"Template for displaying tab line for selected window."
......@@ -149,7 +151,6 @@ Reduce tab width proportionally to space taken by other tabs."
tab-line-separator
(apply 'propertize (tab-line-tab-name b buffers)
`(
help-echo "Click to visit tab"
buffer ,b
face ,(if (eq b buffer)
'tab-line-tab
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment