Fix recentering issue in `follow-mode'
* lisp/follow.el (follow-recenter): Make `C-c . C-l' work in windows before the middle one, too (bug#50220). Copyright-paperwork-exempt: yes
This commit is contained in:
parent
602419bbca
commit
8567ec8bcf
1 changed files with 5 additions and 2 deletions
|
@ -858,8 +858,11 @@ from the bottom."
|
|||
(windows (follow-all-followers))
|
||||
(win (nth (/ (- (length windows) 1) 2) windows)))
|
||||
(select-window win)
|
||||
(goto-char dest)
|
||||
(recenter))))
|
||||
(let ((win-s (window-start)))
|
||||
(goto-char dest)
|
||||
(recenter)
|
||||
(when (< dest win-s)
|
||||
(setq follow-internal-force-redisplay t))))))
|
||||
|
||||
|
||||
(defun follow-redraw ()
|
||||
|
|
Loading…
Add table
Reference in a new issue