Commit dfbbbf31 authored by Juri Linkov's avatar Juri Linkov
Browse files

* lisp/tab-line.el (tab-line-auto-hscroll): Don't let-bind buffer-local values

Use setq to set buffer-local values of truncate-lines and buffer-undo-list.
This will prevent leaking of let-bound values to buffer-local values
of the minibuffer.
parent df89d6d6
......@@ -482,10 +482,10 @@ the selected tab visible."
(defun tab-line-auto-hscroll (strings hscroll)
(let ((truncate-partial-width-windows nil)
(truncate-lines nil)
(inhibit-modification-hooks t)
(buffer-undo-list t)
(setq truncate-lines nil
buffer-undo-list t)
(apply 'insert strings)
(goto-char (point-min))
(add-face-text-property (point-min) (point-max) 'tab-line)
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