Description: use sensible-{editor,pager} instead of vi and less
Forwarded: not-needed
Bug-Debian: http://bugs.debian.org/367995
Author: Rhonda D'Vine <rhonda@debian.org>

Index: ldapvi-1.7/misc.c
===================================================================
--- ldapvi-1.7.orig/misc.c
+++ ldapvi-1.7/misc.c
@@ -163,7 +163,9 @@ edit(char *pathname, long line)
 
 	vi = getenv("VISUAL");
 	if (!vi) vi = getenv("EDITOR");
-	if (!vi) vi = "vi";
+	/* changed from "vi" as fallback to "sensible-editor" which is what
+	 * Debian really uses (closes: #367995) */
+	if (!vi) vi = "sensible-editor";
 
 	switch ( (childpid = fork())) {
 	case -1:
@@ -204,7 +206,9 @@ view(char *pathname)
 	char *clear = tigetstr("clear");
 
 	pg = getenv("PAGER");
-	if (!pg) pg = "less";
+	/* changed from "less" as fallback to "sensible-pager" which is what
+	 * Debian really uses */
+	if (!pg) pg = "sensible-pager";
 
 	if (!invalidp(clear))
 		putp(clear);
