This issue only applies to Emacs 26.x and older (a version that Doom Emacs no longer supports). It is obsolete, but is kept for posterity.
This happens when:
- The
hl-line
face is remapped using theface-remap
library (whichsolaire-mode
does; which Doom enables by default), - You are on Emacs 26.x,
- And your cursor is at the end of the last line of the buffer.