Use osdep_get_name.

pull/865/merge
Nicholas Marriott 2017-06-07 16:21:01 +01:00
parent 86d6666fe7
commit 9543f076fd
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ window_tree_search(__unused void *modedata, void *itemdata, const char *ss)
case WINDOW_TREE_PANE:
if (s == NULL || wl == NULL || wp == NULL)
break;
cmd = get_proc_name(wp->fd, wp->tty);
cmd = osdep_get_name(wp->fd, wp->tty);
if (cmd == NULL || *cmd == '\0')
return (0);
return (strstr(cmd, ss) != NULL);