From 1bf383a5f71b17274a6683e096508a7d0e004bc2 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 (limited to 'overlays') diff --git a/overlays/taskwarrior/TW-1778_patch.diff b/overlays/taskwarrior/TW-1778_patch.diff new file mode 100644 index 0000000..6d7e376 --- /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 64ea690..9ca52b8 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