]> git.immae.eu Git - perso/Immae/Config/Nix/NUR.git/commitdiff
Patch taskwarrior for truncated descriptions
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Thu, 27 Feb 2020 07:42:57 +0000 (08:42 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Fri, 24 Apr 2020 22:04:50 +0000 (00:04 +0200)
overlays/taskwarrior/TW-1778_patch.diff [new file with mode: 0644]
overlays/taskwarrior/default.nix

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;
+     }
+
index 64ea690028c10204f3cd403b211c898570c7bbc2..9ca52b8fb5c1cd1ad5728808fd3ebd99bf498c66 100644 (file)
@@ -1,6 +1,9 @@
 self: super:
 {
   taskwarrior = super.taskwarrior.overrideAttrs (old: {
+    patches = old.patches or [] ++ [
+      ./TW-1778_patch.diff
+    ];
     postInstall = ''${old.postInstall}
       mkdir -p "$out/share/vim/vimfiles/ftdetect"
       mkdir -p "$out/share/vim/vimfiles/syntax"