TW-1778: Unicode strings are truncated in task description

- Thanks to Andrew, bjonnh, OKOMPer, Vladimir.
This commit is contained in:
Paul Beckingham 2016-08-31 17:48:45 -04:00
parent 394b7174cf
commit d025f3deb6
3 changed files with 7 additions and 1 deletions

View file

@ -248,7 +248,7 @@ bool extractLine (
// Premature EOL.
if (character == '\n')
{
line = text.substr (offset, line_length);
line = text.substr (offset, prior_cursor - offset);
offset = cursor;
return true;
}