Fix 'format-mode-line' for integer second argument

* src/xdisp.c (Fformat_mode_line): Test for integers with
INTEGERP.  (Bug#81272)
This commit is contained in:
Eli Zaretskii 2026-06-20 13:32:22 +03:00
parent 4f1af6fa6e
commit 3eb124692d

View file

@ -29001,7 +29001,7 @@ are the selected window and the WINDOW's buffer). */)
struct window *w;
struct buffer *old_buffer = NULL;
int face_id;
bool no_props = FIXNUMP (face);
bool no_props = INTEGERP (face);
specpdl_ref count = SPECPDL_INDEX ();
Lisp_Object str;
int string_start = 0;