Mercurial > emacs
changeset 41870:08a00f891a45
(display_mode_element): Don't read past end of string if it ends with '%'.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Fri, 07 Dec 2001 13:35:11 +0000 |
parents | d90447516029 |
children | 19e9ac869f66 |
files | src/xdisp.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Fri Dec 07 13:05:38 2001 +0000 +++ b/src/xdisp.c Fri Dec 07 13:35:11 2001 +0000 @@ -13461,7 +13461,7 @@ FIELD_WIDTH is the number of characters the display of ELT should occupy in the mode line, and PRECISION is the maximum number of characters to display from ELT's representation. See - display_string for details. * + display_string for details. Returns the hpos of the end of the text generated by ELT. */ @@ -13584,6 +13584,8 @@ } } } + else /* c == 0 */ + break; } } }