mirror of https://github.com/djcb/mu.git
* mu-query: special-case 'now' and 'today' when used as start of range
This commit is contained in:
parent
c23d6b4dc7
commit
000805ae1f
|
@ -45,6 +45,11 @@ public:
|
|||
|
||||
if (!clear_prefix (begin))
|
||||
return Xapian::BAD_VALUENO;
|
||||
|
||||
// now and begin should only appear at the end, so
|
||||
// correct them...
|
||||
if (begin == "today" || begin == "now")
|
||||
std::swap (begin, end);
|
||||
|
||||
substitute_date (begin);
|
||||
substitute_date (end);
|
||||
|
|
Loading…
Reference in New Issue