mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-25 12:17:20 +02:00
validateWriteContext: Apply early break when detected the OR operator
This commit is contained in:
parent
04ef785eea
commit
7de681aa3b
1 changed files with 3 additions and 0 deletions
|
@ -123,7 +123,10 @@ bool CmdContext::validateWriteContext (const std::vector <A2>& lexedArgs, std::s
|
|||
for (auto &arg: lexedArgs) {
|
||||
if (arg._lextype == Lexer::Type::op)
|
||||
if (arg.attribute ("raw") == "or")
|
||||
{
|
||||
contains_or = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (arg._lextype == Lexer::Type::pair) {
|
||||
auto modifier = arg.attribute ("modifier");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue