; * src/xdisp.c (maybe_produce_line_number): Fix last change (bug#76362).
This commit is contained in:
parent
bb86bd2bf6
commit
1136963b4e
1 changed files with 2 additions and 1 deletions
|
@ -25067,7 +25067,8 @@ maybe_produce_line_number (struct it *it)
|
|||
eassert (it->lnum_width > 0);
|
||||
}
|
||||
/* Extra +2 for the two blanks we add before and after the number. */
|
||||
char *lnum_buf = alloca (it->lnum_width + 2 + 1);
|
||||
char *lnum_buf = alloca (max (it->lnum_width, INT_STRLEN_BOUND (ptrdiff_t))
|
||||
+ 2 + 1);
|
||||
if (EQ (Vdisplay_line_numbers, Qrelative))
|
||||
lnum_offset = it->pt_lnum;
|
||||
else if (EQ (Vdisplay_line_numbers, Qvisual))
|
||||
|
|
Loading…
Add table
Reference in a new issue