summaryrefslogtreecommitdiffstats
path: root/window-buffer.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-06-07 18:01:13 +0100
committerThomas Adam <thomas@xteddy.org>2017-06-07 18:01:13 +0100
commit4aa02c374323e1a1d2f7d1364885c2dc06b2933f (patch)
tree9f98d224b9e1e16a3b0d6a1c389d5eb8702f8da9 /window-buffer.c
parent9543f076fddfcd26d8f44487adf065068033bf56 (diff)
parent356fab7bcb378d0adad487dc6898085b58d54fec (diff)
Merge branch 'obsd-master'
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 2888b68c..daceafbe 100644
--- a/window-buffer.c
+++ b/window-buffer.c
@@ -237,7 +237,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);
}