Skip to content

Commit dcbe071

Browse files
committed
Fix undersensitive beginning-of-buffer check
1 parent 21a1c66 commit dcbe071

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

good-scroll.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ Return the next target scroll position. Assume POS > VSCROLL."
585585
(good-scroll--point-top))
586586
(set-window-vscroll nil 0 t)
587587
;; Are we at the beginning of the buffer?
588-
(if (= (point-min) (window-start))
588+
(if (= (line-number-at-pos (point-min))
589+
(line-number-at-pos (window-start)))
589590
;; We are!
590591
;; Print a message and terminate.
591592
(progn

0 commit comments

Comments
 (0)