query language: expand tilde inside a dir: clause
This commit is contained in:
parent
03b3bd4ac8
commit
9af9c6700b
@ -101,7 +101,8 @@ static Rcl::SearchData *wasaQueryToRcl(RclConfig *config, WasaQuery *wasa,
|
|||||||
|
|
||||||
// Filtering on location
|
// Filtering on location
|
||||||
if (!stringicmp("dir", (*it)->m_fieldspec)) {
|
if (!stringicmp("dir", (*it)->m_fieldspec)) {
|
||||||
sdata->setTopdir((*it)->m_value, (*it)->m_op == WasaQuery::OP_EXCL,
|
string dir = path_tildexpand((*it)->m_value);
|
||||||
|
sdata->setTopdir(dir, (*it)->m_op == WasaQuery::OP_EXCL,
|
||||||
(*it)->m_weight);
|
(*it)->m_weight);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user