Work around pixel scrolling issues when org-indent-mode is on
* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line): Subtract line height of window start when it doesn't appear at the 0th pixel of the line.
This commit is contained in:
parent
5181276b43
commit
2f66010549
1 changed files with 6 additions and 0 deletions
|
@ -416,6 +416,12 @@ window, and the pixel height of that line."
|
|||
;; restore initial position
|
||||
(set-window-start nil pos0 t)
|
||||
(set-window-vscroll nil vscroll0 t)
|
||||
(when (and line-height
|
||||
(> (car (posn-x-y (posn-at-point pos0))) 0))
|
||||
(setq line-height (- line-height
|
||||
(save-excursion
|
||||
(goto-char pos0)
|
||||
(line-pixel-height)))))
|
||||
(cons pos line-height)))
|
||||
|
||||
(defun pixel-point-at-unseen-line ()
|
||||
|
|
Loading…
Add table
Reference in a new issue