From 4b12c87c4069fe6f5764e1dc3c396854fca2b48b Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 25 May 2014 19:50:50 -0400 Subject: [PATCH] Context - Eliminated call to A3::list. --- src/Context.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Context.cpp b/src/Context.cpp index 075379f49..c2e711c3d 100644 --- a/src/Context.cpp +++ b/src/Context.cpp @@ -765,9 +765,16 @@ void Context::updateXtermTitle () { std::string command = parser.getCommand (); std::string title; + Tree* tree = parser.tree (); + std::vector ::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 << ""; } }