summaryrefslogtreecommitdiffstats
path: root/window-buffer.c
diff options
context:
space:
mode:
authornicm <nicm>2017-06-07 15:27:46 +0000
committernicm <nicm>2017-06-07 15:27:46 +0000
commit356fab7bcb378d0adad487dc6898085b58d54fec (patch)
treeedbafac9815b302ba2232ab6ea9d4d42b64f6c95 /window-buffer.c
parent405cc337f35731614b37d7279ddfc3a5dc806694 (diff)
Return 1 if name matches not 0, also fix some spaces.
Diffstat (limited to 'window-buffer.c')
-rw-r--r--window-buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window-buffer.c b/window-buffer.c
index db9d8a4f..6cbc54df 100644
--- a/window-buffer.c
+++ b/window-buffer.c
@@ -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);
}