blob: 6ff8ac22e21a67747ba3d1317af287f4c1cfa3dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
From d025f3deb6349f56a7fc49551e819cfe13f97917 Mon Sep 17 00:00:00 2001
From: Paul Beckingham <paul@beckingham.net>
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
|