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.
This commit is contained in:
parent
1e6f09aa72
commit
a64c11a3aa
1 changed files with 5 additions and 0 deletions
|
@ -1166,6 +1166,11 @@ Entry to this mode runs the hooks on `term-mode-hook'."
|
||||||
(setq term-current-row nil)
|
(setq term-current-row nil)
|
||||||
(setq term-current-column nil)
|
(setq term-current-column nil)
|
||||||
(term-set-scroll-region 0 height)
|
(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))))
|
(goto-char point))))
|
||||||
|
|
||||||
;; Recursive routine used to check if any string in term-kill-echo-list
|
;; Recursive routine used to check if any string in term-kill-echo-list
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue