don't force extra keystroke after '=' operators
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 24 Sep 1988 05:26:46 +0000 (21:26 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 24 Sep 1988 05:26:46 +0000 (21:26 -0800)
SCCS-vsn: usr.bin/more/command.c 5.8

usr/src/usr.bin/more/command.c

index df6491d..ea986f8 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)command.c  5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)command.c  5.8 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -419,7 +419,6 @@ commands()
                        if (quitting)
                                quit();
                }
                        if (quitting)
                                quit();
                }
-                       
                /*
                 * Display prompt and accept a character.
                 */
                /*
                 * Display prompt and accept a character.
                 */
@@ -428,8 +427,7 @@ commands()
                noprefix();
                c = getcc();
 
                noprefix();
                c = getcc();
 
-       again:
-               if (sigs)
+again:         if (sigs)
                        continue;
 
                /*
                        continue;
 
                /*
@@ -595,9 +593,12 @@ commands()
                         * Print file name, etc.
                         */
                        cmd_exec();
                         * Print file name, etc.
                         */
                        cmd_exec();
-                       error(eq_message());
-                       break;
-                       
+                       lower_left();
+                       clear_eol();
+                       putstr(eq_message());
+                       lower_left();
+                       c = getcc();
+                       goto again;
                case A_QUIT:
                        /*
                         * Exit.
                case A_QUIT:
                        /*
                         * Exit.