From d025f3deb6349f56a7fc49551e819cfe13f97917 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 31 Aug 2016 17:48:45 -0400 Subject: [PATCH] TW-1778: Unicode strings are truncated in task description - Thanks to Andrew, bjonnh, OKOMPer, Vladimir. --- diff --git a/src/text.cpp b/src/text.cpp index f5e3496b..bc8353f7 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -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; } -- 2.11.0