summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/ed/io.c14
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 != '$')