emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master cd8a1d6: Add an assertion to xdisp.c


From: Eli Zaretskii
Subject: [Emacs-diffs] master cd8a1d6: Add an assertion to xdisp.c
Date: Wed, 8 May 2019 02:30:15 -0400 (EDT)

branch: master
commit cd8a1d6bfdc5aebc34348801dbaca06f2f4986c5
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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.
---
 src/xdisp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/xdisp.c b/src/xdisp.c
index 63ca677..d380645 100644
--- 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]