1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 18:41:25 -08:00

Add an assertion to xdisp.c

* src/xdisp.c (display_mode_element): Add an assertion where
we assume that 'string' returned by decode_mode_spec is always
either a Lisp string or nil.
This commit is contained in:
Eli Zaretskii 2019-05-08 09:29:20 +03:00
parent 4cb64ac3f9
commit cd8a1d6bfd

View file

@ -24026,6 +24026,7 @@ display_mode_element (struct it *it, int depth, int field_width, int precision,
? string_byte_to_char (elt, bytepos)
: bytepos);
spec = decode_mode_spec (it->w, c, field, &string);
eassert (NILP (string) || STRINGP (string));
multibyte = !NILP (string) && STRING_MULTIBYTE (string);
switch (mode_line_target)