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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user