diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2018-06-04 13:29:08 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2018-06-04 13:29:08 +0000 |
commit | 2403ffa0d269f3234df9de6cdedfc62f3ee806eb (patch) | |
tree | a5b06bb3b179d64825791bb402c33e37af38cbd1 | |
parent | 9a4094f48098a19b8f9ef4546c979d64a8936373 (diff) |
Remove the extra pager code when compiled without the BACKWARDS flag.
Most terminals have scrollback options, or can be achieved via tmux, so
it's not needed.
OK millert@
-rw-r--r-- | bin/ed/io.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/bin/ed/io.c b/bin/ed/io.c index de2f2586b36..e9d6e1c3007 100644 --- a/bin/ed/io.c +++ b/bin/ed/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.21 2018/04/26 12:18:54 martijn Exp $ */ +/* $OpenBSD: io.c,v 1.22 2018/06/04 13:29:07 martijn Exp $ */ /* $NetBSD: io.c,v 1.2 1995/03/21 09:04:43 cgd Exp $ */ /* io.c: This file contains the i/o routines for the ed line editor */ @@ -306,9 +306,6 @@ int put_tty_line(char *s, int l, int n, int gflag) { int col = 0; -#ifndef BACKWARDS - int lc = 0; -#endif char *cp; if (gflag & GNP) { @@ -319,15 +316,6 @@ put_tty_line(char *s, int l, int n, int gflag) if ((gflag & GLS) && ++col > cols) { fputs("\\\n", stdout); col = 1; -#ifndef BACKWARDS - if (!scripted && !isglobal && ++lc > rows) { - lc = 0; - fputs("Press <RETURN> to continue... ", stdout); - fflush(stdout); - if (get_tty_line() < 0) - return ERR; - } -#endif } if (gflag & GLS) { if (31 < *s && *s < 127 && *s != '\\' && *s != '$') |