Igor Schein on Mon, 10 Aug 1998 19:38:54 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Pager patch


Hi, the following little patch fixes the pager
behavior during '\c' command, where if you press
a character other than return, next time the pager
will skip the prompt.

--- gp.c        Mon Aug 10 19:35:10 1998
+++ gp.c~       Sat Jul 25 14:40:59 1998
@@ -1561,7 +1561,7 @@
       if (nbli && j++ > nbli)
       { /* \n has to be echoed later if we are under emacs (E. Kowalski) */
        pariputs("---- (type return to continue) ----");
-       getchar(); fflush(stdin); pariputc('\n'); j=0;
+       getchar(); pariputc('\n'); j=0;
       }
       continue;
     }