summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoam Postavsky <npostavs@gmail.com>2018-04-02 06:55:29 -0400
committerNoam Postavsky <npostavs@gmail.com>2018-04-02 06:57:53 -0400
commita64c11a3aa49121ceab79a2acc99c829d42417bd (patch)
tree27f8e56b4e2933cd04cfcff2d7a8e9a956eb8361
parent1e6f09aa72fbdfc9246bcb85bc69a624c0efcfdf (diff)
downloademacs-a64c11a3aa49121ceab79a2acc99c829d42417bd.tar.gz
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.
-rw-r--r--lisp/term.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/term.el b/lisp/term.el
index f4a1299f279..0a5efa4abc9 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