mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Return 1 if name matches not 0, also fix some spaces.
This commit is contained in:
parent
405cc337f3
commit
356fab7bcb
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user