Skip to content

Commit cd8a1d6

Browse files
committed
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.
1 parent 4cb64ac commit cd8a1d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/xdisp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24026,6 +24026,7 @@ display_mode_element (struct it *it, int depth, int field_width, int precision,
2402624026
? string_byte_to_char (elt, bytepos)
2402724027
: bytepos);
2402824028
spec = decode_mode_spec (it->w, c, field, &string);
24029+
eassert (NILP (string) || STRINGP (string));
2402924030
multibyte = !NILP (string) && STRING_MULTIBYTE (string);
2403024031

2403124032
switch (mode_line_target)

0 commit comments

Comments
 (0)