Fix bob detection when pixel scrolling upwards
* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line): Don't go to the beginning-of-visual-line if bobp.
This commit is contained in:
parent
2e4740f042
commit
59db96d83a
1 changed files with 2 additions and 1 deletions
|
@ -399,7 +399,8 @@ character on the unseen line just above the scope of current
|
|||
window, and the pixel height of that line."
|
||||
(let* ((pos0 (save-excursion
|
||||
(goto-char (window-start))
|
||||
(beginning-of-visual-line)
|
||||
(unless (bobp)
|
||||
(beginning-of-visual-line))
|
||||
(point)))
|
||||
(vscroll0 (window-vscroll nil t))
|
||||
(line-height nil)
|
||||
|
|
Loading…
Add table
Reference in a new issue