mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-25 10:54:52 +01:00
emacs: Fix backspace to not scroll more than the previous message
The bug was occuring due to counting invisible lines, but then scrolling past them since they are invisible.
This commit is contained in:
parent
c963098e28
commit
c5085642b8
1 changed files with 7 additions and 1 deletions
|
@ -647,7 +647,13 @@ any effects from previous calls to
|
|||
(condition-case nil
|
||||
(scroll-down nil)
|
||||
((beginning-of-buffer) nil))
|
||||
(goto-char (window-start)))
|
||||
(goto-char (window-start))
|
||||
; Because count-lines counts invivisible lines, we may have
|
||||
; scrolled to far. If so., notice this and fix it up.
|
||||
(if (< (point) previous)
|
||||
(progn
|
||||
(goto-char previous)
|
||||
(recenter 0))))
|
||||
(notmuch-show-previous-message))))
|
||||
|
||||
(defun notmuch-show-advance-and-archive ()
|
||||
|
|
Loading…
Reference in a new issue