aboutsummaryrefslogtreecommitdiff
path: root/flakes/mypackages/overlays/taskwarrior/TW-1778_patch.diff
blob: 6d7e3766899266f75749f6dcc37441030473cd91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/src/text.cpp 2016-02-24 23:18:11.000000000 +0100
+++ b/src/text.cpp 2020-02-26 18:53:15.869331031 +0100
@@ -248,7 +248,7 @@
     // Premature EOL.
     if (character == '\n')
     {
-      line = text.substr (offset, line_length);
+      line = text.substr (offset, prior_cursor-offset);
       offset = cursor;
       return true;
     }