forked from enlightenment/enlightenment
only show recent files of subdirs when browsing
SVN revision: 48648
This commit is contained in:
parent
2b5e44b070
commit
255a245acc
|
@ -1001,12 +1001,19 @@ _recentf_items_add_cb(const Eina_Hash *hash, const void *key, void *data, void *
|
|||
}
|
||||
|
||||
/* searching subdirs */
|
||||
if (p->directory && strncmp(path, p->directory, strlen(p->directory)))
|
||||
if (p->directory)
|
||||
{
|
||||
/* dont show recent files from same dir */
|
||||
int len = strlen(p->directory);
|
||||
char *end = strrchr(path, '/');
|
||||
if (strncmp(path, p->directory, len) ||
|
||||
(end - path) <= len)
|
||||
{
|
||||
/* DBG("not in dir %s", path); */
|
||||
eina_stringshare_del(path);
|
||||
return EINA_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
if (!(match = evry_fuzzy_match(label, p->input)) &&
|
||||
!(match = evry_fuzzy_match(path, p->input)))
|
||||
|
|
Loading…
Reference in New Issue