diff --git a/src/command.cpp b/src/command.cpp index d62b4ce1a..24bbcac21 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -762,6 +762,7 @@ std::string handleDone () if (taskDiff (before, *task)) { + std::cout << "Task " << before.id << " \"" << before.get ("description") << "\"" << std::endl; std::string question = taskDifferences (before, *task) + "Are you sure?"; if (permission.confirmed (question)) { @@ -907,6 +908,7 @@ std::string handleModify () if (taskDiff (before, *other)) { + std::cout << "Task " << before.id << " \"" << before.get ("description") << "\"" << std::endl; std::string question = taskDifferences (before, *other) + "Are you sure?"; if (changes && permission.confirmed (question)) { @@ -967,6 +969,7 @@ std::string handleAppend () if (taskDiff (before, *other)) { + std::cout << "Task " << before.id << " \"" << before.get ("description") << "\"" << std::endl; std::string question = taskDifferences (before, *other) + "Are you sure?"; if (changes && permission.confirmed (question)) { @@ -1253,6 +1256,7 @@ std::string handleAnnotate () if (taskDiff (before, *task)) { + std::cout << "Task " << before.id << " \"" << before.get ("description") << "\"" << std::endl; std::string question = taskDifferences (before, *task) + "Are you sure?"; if (permission.confirmed (question)) { diff --git a/src/util.cpp b/src/util.cpp index 7ab42aa4c..76ebd1312 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -506,7 +506,7 @@ std::string taskDifferences (const Task& before, const Task& after) out << " - " << *name << " was set to '" - << after.get (*name) + << renderAttribute (*name, after.get (*name)) << "'\n"; foreach (name, beforeAtts) @@ -516,12 +516,12 @@ std::string taskDifferences (const Task& before, const Task& after) out << " - " << *name << " was changed from '" - << before.get (*name) + << renderAttribute (*name, before.get (*name)) << "' to '" - << after.get (*name) + << renderAttribute (*name, after.get (*name)) << "'\n"; - // Can't just say nothing. + // Shouldn't just say nothing. if (out.str ().length () == 0) out << " - No changes were made\n";