(> (length strings) 1))
tab-line-right-button)))
(if hscroll (nthcdr (truncate hscroll) strings) strings)
- (when (eq tab-line-tabs-function #'tab-line-tabs-window-buffers)
- (list (concat separator (when tab-line-new-tab-choice
- tab-line-new-button)))))))
+ (list separator)
+ (when (and (eq tab-line-tabs-function #'tab-line-tabs-window-buffers)
+ tab-line-new-tab-choice)
+ (list tab-line-new-button)))))
(defvar tab-line-auto-hscroll)
"Template for displaying tab line for selected window."
(let* ((tabs (funcall tab-line-tabs-function))
(cache-key (list tabs
- (window-buffer)
+ (buffer-name (window-buffer))
(window-parameter nil 'tab-line-hscroll)))
(cache (window-parameter nil 'tab-line-cache)))
;; Enable auto-hscroll again after it was disabled on manual scrolling.