From 2403ffa0d269f3234df9de6cdedfc62f3ee806eb Mon Sep 17 00:00:00 2001 From: Martijn van Duren Date: Mon, 4 Jun 2018 13:29:08 +0000 Subject: 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@ --- bin/ed/io.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'bin/ed') 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 to continue... ", stdout); - fflush(stdout); - if (get_tty_line() < 0) - return ERR; - } -#endif } if (gflag & GLS) { if (31 < *s && *s < 127 && *s != '\\' && *s != '$') -- cgit v1.2.3