]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix term.el rendering following a window resize (Bug#30544)
authorNoam Postavsky <npostavs@gmail.com>
Mon, 2 Apr 2018 10:55:29 +0000 (06:55 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Mon, 2 Apr 2018 10:57:53 +0000 (06:57 -0400)
* lisp/term.el (term-reset-size): Reset cached row and column values
before changing point.

lisp/term.el

index f4a1299f2799e2bc384885296526cad1285ba41f..0a5efa4abc9b758a317bb285316f98074e6c53d5 100644 (file)
@@ -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