projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cb64ac
)
Add an assertion to xdisp.c
author
Eli Zaretskii
<eliz@gnu.org>
Wed, 8 May 2019 06:29:20 +0000
(09:29 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Wed, 8 May 2019 06:29:20 +0000
(09:29 +0300)
* 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.
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 63ca677e3620603a6365babc70420993ca7dfa35..d380645c8491f295bdf0640f3bdc5e812b28a1a5 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-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)