Description: Default to alternatives when $EDITOR or $PAGER is not set
Author: Taavi Väänänen <taavi@debian.org>
Origin: vendor
Bug-Debian: https://bugs.debian.org/1039891
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/main.go
+++ b/main.go
@@ -149,7 +148,7 @@
 func getInputWithEditor(pattern, initialText string) (string, error) {
 	editor := os.Getenv("EDITOR")
 	if editor == "" {
-		return "", errors.New("EDITOR not set")
+		editor = "/usr/bin/editor"
 	}
 
 	commandSplit, err := shlex.Split(editor)
--- a/pager.go
+++ b/pager.go
@@ -26,7 +26,7 @@
 
 	name, ok := os.LookupEnv("PAGER")
 	if !ok {
-		name = "less"
+		name = "/usr/bin/pager"
 	}
 
 	commandSplit, err := shlex.Split(name)
