mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1642: After "--", an apostrophe unexpectedly ends the task description
- Thanks to Jeremy John Reeder.
This commit is contained in:
parent
4e2062cd25
commit
caab26247c
2 changed files with 7 additions and 1 deletions
|
@ -83,6 +83,8 @@
|
|||
epoch 0.
|
||||
- TW-1641 'edit' should process or reject <mods> arguments (thanks to Daniel
|
||||
Shahaf).
|
||||
- TW-1642 After "--", an apostrophe unexpectedly ends the task description
|
||||
(thanks to Jeremy John Reeder).
|
||||
- Prevent potential task duplication during import for non-pending tasks.
|
||||
- Show the active context in "context list", if any is active.
|
||||
- Fix "task edit" dropping annotation text after newlines.
|
||||
|
|
|
@ -439,9 +439,13 @@ void CLI2::lexArguments ()
|
|||
}
|
||||
else
|
||||
{
|
||||
std::string quote = "'";
|
||||
std::string escaped = _original_args[i];
|
||||
str_replace (escaped, quote, "\\'");
|
||||
|
||||
std::string::size_type cursor = 0;
|
||||
std::string word;
|
||||
if (Lexer::readWord ("'" + _original_args[i] + "'", "'", cursor, word))
|
||||
if (Lexer::readWord (quote + escaped + quote, quote, cursor, word))
|
||||
{
|
||||
Lexer::dequote (word);
|
||||
A2 unknown (word, Lexer::Type::word);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue