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:
parent
4cb64ac3f9
commit
cd8a1d6bfd
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue