emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 a64c11a: Fix term.el rendering following a window


From: Noam Postavsky
Subject: [Emacs-diffs] emacs-26 a64c11a: Fix term.el rendering following a window resize (Bug#30544)
Date: Mon, 2 Apr 2018 07:02:25 -0400 (EDT)

branch: emacs-26
commit a64c11a3aa49121ceab79a2acc99c829d42417bd
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Fix term.el rendering following a window resize (Bug#30544)
    
    * lisp/term.el (term-reset-size): Reset cached row and column values
    before changing point.
---
 lisp/term.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lisp/term.el b/lisp/term.el
index f4a1299..0a5efa4 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -1166,6 +1166,11 @@ Entry to this mode runs the hooks on `term-mode-hook'."
       (setq term-current-row nil)
       (setq term-current-column nil)
       (term-set-scroll-region 0 height)
+      ;; `term-set-scroll-region' causes these to be set, we have to
+      ;; clear them again since we're changing point (Bug#30544).
+      (setq term-start-line-column nil)
+      (setq term-current-row nil)
+      (setq term-current-column nil)
       (goto-char point))))
 
 ;; Recursive routine used to check if any string in term-kill-echo-list



reply via email to

[Prev in Thread] Current Thread [Next in Thread]