(init_from_display_pos): Don't compare the result
of calling index with NULL.
This commit is contained in:
parent
9012a201f9
commit
78999117cd
2 changed files with 2 additions and 2 deletions
|
@ -1296,7 +1296,7 @@
|
|||
(which-function-mode): Remove references to which-func-mode-global.
|
||||
|
||||
* calendar/cal-islam.el (calendar-goto-islamic-date):
|
||||
Add autoload cookie.
|
||||
Add autoload cookie.
|
||||
|
||||
* play/fortune.el: Add types to defcustoms.
|
||||
|
||||
|
|
|
@ -1840,7 +1840,7 @@ init_from_display_pos (it, w, pos)
|
|||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue