Skip to content

Commit

Permalink
fix: Sip virtual line completely
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jun 27, 2024
1 parent 0c5d0ee commit ba55945
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sideline.el
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,12 @@ available lines in both directions (up & down)."
(when-let* ((occ-bol (line-beginning-position))
((and (not (memq occ-bol occupied-lines))
(not break-it)))
(col (sideline--calc-space str-len on-left (sideline--opposing-str-len))))
(setq data (list (sideline--column-to-point (car col))
(sideline--column-to-point (cdr col))
occ-bol))
(col (sideline--calc-space str-len on-left (sideline--opposing-str-len)))
(pos-start (sideline--column-to-point (car col)))
(pos-end (sideline--column-to-point (cdr col)))
;; Skip virtual line from `truncate-lines'.
((= pos-start pos-end)))
(setq data (list pos-start pos-end occ-bol))
(setq break-it t)
(push occ-bol occupied-lines))
(when (if going-up (bobp) (eobp)) (setq break-it t))))
Expand Down

0 comments on commit ba55945

Please sign in to comment.