Skip to content

Commit

Permalink
fix: column may be lower than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Feb 22, 2024
1 parent 53b7562 commit 3bd6315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sideline.el
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@

(defun sideline--column-to-point (column)
"Convert COLUMN to point."
(save-excursion (move-to-column column) (point)))
(save-excursion (move-to-column (max column 0)) (point)))

(defun sideline--window-width ()
"Correct window width for sideline."
Expand Down

0 comments on commit 3bd6315

Please sign in to comment.