]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/blobdiff - overlays/taskwarrior/TW-1778_patch.diff
Patch taskwarrior for truncated descriptions
[perso/Immae/Config/Nix/NUR.git] / overlays / taskwarrior / TW-1778_patch.diff
diff --git a/overlays/taskwarrior/TW-1778_patch.diff b/overlays/taskwarrior/TW-1778_patch.diff
new file mode 100644 (file)
index 0000000..6d7e376
--- /dev/null
@@ -0,0 +1,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;
+     }
+