Revert 1.11. That patch is not only not necessary, it is quite harmful now.
authorshadchin <shadchin@openbsd.org>
Sat, 26 Apr 2014 05:58:43 +0000 (05:58 +0000)
committershadchin <shadchin@openbsd.org>
Sat, 26 Apr 2014 05:58:43 +0000 (05:58 +0000)
ok schwarze@

usr.bin/less/command.c

index f53d7b6..7ade960 100644 (file)
@@ -56,7 +56,6 @@ extern int oldbot;
 extern int forw_prompt;
 extern int be_helpful;
 extern int less_is_more;
-extern int quit_at_eof;
 
 #if SHELL_ESCAPE
 static char *shellcmd = NULL;  /* For holding last shell command for "!!" */
@@ -1259,8 +1258,6 @@ commands()
                         * Forward forever, ignoring EOF.
                         */
                        newaction = forw_loop(0);
-                       if (less_is_more)
-                               quit_at_eof = OPT_ON;
                        break;
 
                case A_F_UNTIL_HILITE: