mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
"Fix" hl-line bleeding into buffer bg (part 2)
At least highlight up to n-1's character in 2nd-to-last line, as promised.
This commit is contained in:
@ -58,12 +58,11 @@
|
||||
(let ((bol (line-beginning-position))
|
||||
(eol (line-end-position))
|
||||
(eob (point-max)))
|
||||
(cond ((or (= bol eob)
|
||||
(= (1+ eol) eob))
|
||||
(cond ((= bol eob)
|
||||
nil)
|
||||
((= eol eob)
|
||||
(cons bol eol))
|
||||
((eobp)
|
||||
((= (1+ eol) eob)
|
||||
(cons bol (1- eob)))
|
||||
((or (= eol eob) (eobp))
|
||||
(cons bol eol))
|
||||
((cons bol (line-beginning-position 2)))))
|
||||
(cons (line-beginning-position)
|
||||
|
Reference in New Issue
Block a user