clear out the hscroll value in this buffer's windows.
(display-message-or-buffer): Don't display empty output in the echo area.
(if (= (buffer-size) 0)
0
(count-lines (point-min) (point-max)))))
- (cond ((and (or (<= lines 1)
+ (cond ((= lines 0))
+ ((and (or (<= lines 1)
(<= lines
(if resize-mini-windows
(cond ((floatp max-mini-window-height)
(not truncate-lines)
(> (prefix-numeric-value arg) 0)))
(force-mode-line-update)
+ (unless truncate-lines
+ (let ((buffer (current-buffer)))
+ (walk-windows (lambda (window)
+ (if (eq buffer (window-buffer window))
+ (set-window-hscroll window 0)))
+ nil t)))
(message "Truncate long lines %s"
(if truncate-lines "enabled" "disabled")))