Mercurial > emacs
changeset 39170:18505c69ffa6
(init_from_display_pos): Don't compare the result
of calling index with NULL.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Fri, 07 Sep 2001 11:16:30 +0000 |
parents | 338b1a97adf7 |
children | 9955e741f70f |
files | src/xdisp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xdisp.c Thu Sep 06 19:50:51 2001 +0000 +++ b/src/xdisp.c Fri Sep 07 11:16:30 2001 +0000 @@ -1840,7 +1840,7 @@ init_iterator (it, w, charpos, bytepos, NULL, DEFAULT_FACE_ID); for (i = 0; i < it->n_overlay_strings; ++i) - if (index (XSTRING (it->overlay_strings[i])->data, '\n') != NULL) + if (index (XSTRING (it->overlay_strings[i])->data, '\n')) { overlay_strings_with_newlines = 1; break;