mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Hooks
- Fixed bug where the identifier "on-modify" contained some bogus UTF8. - Ensured that every input line has a \n.
This commit is contained in:
parent
719e9d242b
commit
7e2582f2b8
1 changed files with 4 additions and 2 deletions
|
@ -297,7 +297,7 @@ void Hooks::onModify (const Task& before, std::vector <Task>& tasks)
|
|||
|
||||
context.timer_hooks.start ();
|
||||
|
||||
std::vector <std::string> matchingScripts = scripts ("on-modіfy");
|
||||
std::vector <std::string> matchingScripts = scripts ("on-modify");
|
||||
if (matchingScripts.size ())
|
||||
{
|
||||
// Prepare invariants.
|
||||
|
@ -463,7 +463,9 @@ int Hooks::callHookScript (
|
|||
}
|
||||
|
||||
std::string inputStr;
|
||||
join (inputStr, "\n", input);
|
||||
std::vector <std::string>::const_iterator i;
|
||||
for (i = input.begin (); i != input.end (); ++i)
|
||||
inputStr += *i + "\n";
|
||||
|
||||
std::string outputStr;
|
||||
std::vector <std::string> args;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue