Commit f519aa10 authored by Eli Zaretskii's avatar Eli Zaretskii

Fix display of line numbers in empty lines beyond EOB

* src/xdisp.c (maybe_produce_line_number): When the current
line is at EOB, use the 'line-number-current-line' face only
on that single line, but not on the rest of empty lines beyond
EOB.  (Bug#33732)
parent 24b5026f
Pipeline #278 failed with stage
in 5 minutes and 9 seconds
......@@ -21185,7 +21185,10 @@ maybe_produce_line_number (struct it *it)
if (lnum_face_id != current_lnum_face_id
&& (EQ (Vdisplay_line_numbers, Qvisual)
? this_line == 0
: this_line == it->pt_lnum))
: this_line == it->pt_lnum)
/* Avoid displaying the line-number-current-line face on
empty lines beyond EOB. */
&& it->what != IT_EOB)
tem_it.face_id = current_lnum_face_id;
tem_it.face_id = lnum_face_id;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment