Skip to content

Commit

Permalink
fix: Only display on visible lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed May 10, 2024
1 parent da18e46 commit 4aa1fb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sideline.el
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
"Return the accurate window end position."
(save-excursion
(goto-char (window-end))
(forward-line (- 0 (sideline--modeline-height)))
(forward-visible-line (- 0 (sideline--modeline-height)))
(line-beginning-position)))

(defun sideline--window-width ()
Expand Down Expand Up @@ -393,7 +393,7 @@ available lines in both directions (up & down)."
(save-excursion
(while (not break-it)
(if skip-first (setq skip-first nil)
(forward-line (if going-up -1 1)))
(forward-visible-line (if going-up -1 1)))
(unless (if going-up (<= bol (point)) (<= (point) eol))
(setq break-it t))
(when-let* ((occ-bol (line-beginning-position))
Expand Down

0 comments on commit 4aa1fb2

Please sign in to comment.