diff options
| author | Eli Zaretskii | 2025-02-17 18:00:30 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2025-02-17 18:00:30 +0200 |
| commit | 1136963b4e81e2b3efd42f3bd609bf968d05831f (patch) | |
| tree | 70022b8cb19e3a18cef994c68d9c407b0610f75a /src | |
| parent | bb86bd2bf674aafa49e505d5a78ce8207c5b4f4b (diff) | |
| download | emacs-1136963b4e81e2b3efd42f3bd609bf968d05831f.tar.gz emacs-1136963b4e81e2b3efd42f3bd609bf968d05831f.zip | |
; * src/xdisp.c (maybe_produce_line_number): Fix last change (bug#76362).
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 0de5aee86dd..7a164ba2972 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -25067,7 +25067,8 @@ maybe_produce_line_number (struct it *it) | |||
| 25067 | eassert (it->lnum_width > 0); | 25067 | eassert (it->lnum_width > 0); |
| 25068 | } | 25068 | } |
| 25069 | /* Extra +2 for the two blanks we add before and after the number. */ | 25069 | /* Extra +2 for the two blanks we add before and after the number. */ |
| 25070 | char *lnum_buf = alloca (it->lnum_width + 2 + 1); | 25070 | char *lnum_buf = alloca (max (it->lnum_width, INT_STRLEN_BOUND (ptrdiff_t)) |
| 25071 | + 2 + 1); | ||
| 25071 | if (EQ (Vdisplay_line_numbers, Qrelative)) | 25072 | if (EQ (Vdisplay_line_numbers, Qrelative)) |
| 25072 | lnum_offset = it->pt_lnum; | 25073 | lnum_offset = it->pt_lnum; |
| 25073 | else if (EQ (Vdisplay_line_numbers, Qvisual)) | 25074 | else if (EQ (Vdisplay_line_numbers, Qvisual)) |