From 079fa4e3be9f1178fb671c577eece2921d054fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 27 Feb 2020 08:42:57 +0100 Subject: Patch taskwarrior for truncated descriptions --- overlays/taskwarrior/TW-1778_patch.diff | 12 ++++++++++++ overlays/taskwarrior/default.nix | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 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 index 00000000..6d7e3766 --- /dev/null +++ b/overlays/taskwarrior/TW-1778_patch.diff @@ -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; + } + diff --git a/overlays/taskwarrior/default.nix b/overlays/taskwarrior/default.nix index 64ea6900..9ca52b8f 100644 --- a/overlays/taskwarrior/default.nix +++ b/overlays/taskwarrior/default.nix @@ -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" -- cgit v1.2.3