mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-08-18 15:33:12 +02:00
Bug: Review was using an uninitialized variable to count tasks
This commit is contained in:
parent
3b18b20d17
commit
c1be4df9f7
1 changed files with 1 additions and 2 deletions
|
@ -178,7 +178,6 @@ static const std::string menu ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
static void reviewLoop (const std::vector <std::string>& uuids)
|
||||
{
|
||||
auto tasks = 0;
|
||||
auto total = uuids.size ();
|
||||
auto width = getWidth ();
|
||||
|
||||
|
@ -228,7 +227,7 @@ static void reviewLoop (const std::vector <std::string>& uuids)
|
|||
}
|
||||
|
||||
std::cout << "\n"
|
||||
<< format (STRING_REVIEW_END, tasks, total)
|
||||
<< format (STRING_REVIEW_END, current, total)
|
||||
<< "\n\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue