mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Context
- ::clear now calls Parser::clear, which prevents the parse tree from growing with every shell command.
This commit is contained in:
parent
512fe2f6c7
commit
850dbb36f0
1 changed files with 1 additions and 3 deletions
|
@ -696,8 +696,7 @@ void Context::decomposeSortField (
|
||||||
void Context::clear ()
|
void Context::clear ()
|
||||||
{
|
{
|
||||||
tdb2.clear ();
|
tdb2.clear ();
|
||||||
|
parser.clear ();
|
||||||
// TODO parser.clear (); ?
|
|
||||||
|
|
||||||
// Eliminate the command objects.
|
// Eliminate the command objects.
|
||||||
std::map <std::string, Command*>::iterator com;
|
std::map <std::string, Command*>::iterator com;
|
||||||
|
@ -712,7 +711,6 @@ void Context::clear ()
|
||||||
delete col->second;
|
delete col->second;
|
||||||
|
|
||||||
columns.clear ();
|
columns.clear ();
|
||||||
|
|
||||||
clearMessages ();
|
clearMessages ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue