about summary refs log tree commit diff
path: root/pkgs/aszlig/gopass/use-color-in-pager.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/aszlig/gopass/use-color-in-pager.patch')
-rw-r--r--pkgs/aszlig/gopass/use-color-in-pager.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/aszlig/gopass/use-color-in-pager.patch b/pkgs/aszlig/gopass/use-color-in-pager.patch
new file mode 100644
index 00000000..86f6fd53
--- /dev/null
+++ b/pkgs/aszlig/gopass/use-color-in-pager.patch
@@ -0,0 +1,20 @@
+diff --git a/pkg/action/list.go b/pkg/action/list.go
+index 03de22b..d54113f 100644
+--- a/pkg/action/list.go
++++ b/pkg/action/list.go
+@@ -14,7 +14,6 @@ import (
+ 	"github.com/justwatchcom/gopass/pkg/termutil"
+ 	"github.com/justwatchcom/gopass/pkg/tree"
+ 
+-	"github.com/fatih/color"
+ 	shellquote "github.com/kballard/go-shellquote"
+ 	"github.com/pkg/errors"
+ 	"github.com/urfave/cli"
+@@ -89,7 +88,6 @@ func redirectPager(ctx context.Context, subtree tree.Tree) (io.Writer, *bytes.Bu
+ 	if subtree == nil || subtree.Len() < rows {
+ 		return stdout, nil
+ 	}
+-	color.NoColor = true
+ 	buf := &bytes.Buffer{}
+ 	return buf, buf
+ }