[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 861eee4: Work around pixel scrolling issues when line numbers are
From: |
Po Lu |
Subject: |
master 861eee4: Work around pixel scrolling issues when line numbers are displayed |
Date: |
Tue, 14 Dec 2021 21:28:15 -0500 (EST) |
branch: master
commit 861eee42418f510679a6e3ae1ee433353194cb68
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Work around pixel scrolling issues when line numbers are displayed
* lisp/pixel-scroll.el (pixel-point-and-height-at-unseen-line):
Compare start position against line number display width
instead.
---
lisp/pixel-scroll.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/pixel-scroll.el b/lisp/pixel-scroll.el
index 142ebf9..fa0185b 100644
--- a/lisp/pixel-scroll.el
+++ b/lisp/pixel-scroll.el
@@ -417,7 +417,8 @@ window, and the pixel height of that line."
(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))
+ (> (car (posn-x-y (posn-at-point pos0)))
+ (line-number-display-width t)))
(setq line-height (- line-height
(save-excursion
(goto-char pos0)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 861eee4: Work around pixel scrolling issues when line numbers are displayed,
Po Lu <=