Synchronize scrolling only when point is on cursor

* eat.el (eat--adjust-process-window-size): Synchronize
scrolling only when point is on cursor.
This commit is contained in:
Akib Azmain Turja 2022-12-07 15:38:47 +06:00
parent ebc77efd0f
commit 58fd1b1196
No known key found for this signature in database
GPG key ID: 5535FCF54D88616B

7
eat.el
View file

@ -5027,11 +5027,8 @@ of window displaying PROCESS's buffer."
(height (max (cdr size) 1))
(inhibit-read-only t)
(synchronize-scroll
(and (<= (eat-term-display-beginning eat--terminal)
(point))
(or (< (point) (eat-term-end eat--terminal))
(= (point) (eat-term-end eat--terminal)
(point-max))))))
(or (= (eat-term-display-cursor eat--terminal) (point))
eat--char-mode)))
(eat-term-resize eat--terminal width height)
(eat-term-redisplay eat--terminal)
(when synchronize-scroll