diff options
| author | Eli Zaretskii | 2018-12-14 10:43:37 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2018-12-14 10:43:37 +0200 |
| commit | f519aa10b47f7c652ae9b5f021363073f5c463ff (patch) | |
| tree | 4ac19602d654879098b7d324b1d6f2b90fd7c545 /src | |
| parent | 24b5026fb6b622966fd773178608617fa2f8add2 (diff) | |
| download | emacs-f519aa10b47f7c652ae9b5f021363073f5c463ff.tar.gz emacs-f519aa10b47f7c652ae9b5f021363073f5c463ff.zip | |
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)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 808eab7e538..435ab2c0296 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -21185,7 +21185,10 @@ maybe_produce_line_number (struct it *it) | |||
| 21185 | if (lnum_face_id != current_lnum_face_id | 21185 | if (lnum_face_id != current_lnum_face_id |
| 21186 | && (EQ (Vdisplay_line_numbers, Qvisual) | 21186 | && (EQ (Vdisplay_line_numbers, Qvisual) |
| 21187 | ? this_line == 0 | 21187 | ? this_line == 0 |
| 21188 | : this_line == it->pt_lnum)) | 21188 | : this_line == it->pt_lnum) |
| 21189 | /* Avoid displaying the line-number-current-line face on | ||
| 21190 | empty lines beyond EOB. */ | ||
| 21191 | && it->what != IT_EOB) | ||
| 21189 | tem_it.face_id = current_lnum_face_id; | 21192 | tem_it.face_id = current_lnum_face_id; |
| 21190 | else | 21193 | else |
| 21191 | tem_it.face_id = lnum_face_id; | 21194 | tem_it.face_id = lnum_face_id; |