Return 1 if name matches not 0, also fix some spaces.

This commit is contained in:
nicm 2017-06-07 15:27:46 +00:00
parent 405cc337f3
commit 356fab7bcb
4 changed files with 5 additions and 5 deletions

View File

@ -238,7 +238,7 @@ window_buffer_search(__unused void *modedata, void *itemdata, const char *ss)
if ((pb = paste_get_name(item->name)) == NULL)
return (0);
if (strstr(item->name, ss) != NULL)
return (0);
return (1);
bufdata = paste_buffer_data(pb, &bufsize);
return (memmem(bufdata, bufsize, ss, strlen(ss)) != NULL);
}