mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Context
- Eliminated call to A3::list.
This commit is contained in:
parent
f87d7bd94a
commit
4b12c87c40
1 changed files with 9 additions and 2 deletions
|
@ -765,9 +765,16 @@ void Context::updateXtermTitle ()
|
|||
{
|
||||
std::string command = parser.getCommand ();
|
||||
std::string title;
|
||||
Tree* tree = parser.tree ();
|
||||
std::vector <Tree*>::iterator i;
|
||||
for (i = tree->_branches.begin (); i != tree->_branches.end (); ++i)
|
||||
{
|
||||
if (i != tree->_branches.begin ())
|
||||
title += ' ';
|
||||
|
||||
title += (*i)->attribute ("raw");
|
||||
}
|
||||
|
||||
// TODO Obsolete.
|
||||
join (title, " ", a3.list ());
|
||||
std::cout << "]0;task " << command << " " << title << "";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue