From 792c04d9f818ccf02d9aeec57d220bccf1a98b00 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 12 Jan 1996 21:11:12 +0000 Subject: [PATCH] from netbsd; Correct test for ECHONL (from der Mouse; PR#1922). --- sys/kern/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 9c973a4d860..fee5af84486 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $NetBSD: tty.c,v 1.63 1995/10/10 01:26:57 mycroft Exp $ */ +/* $NetBSD: tty.c,v 1.64 1996/01/10 20:52:27 pk Exp $ */ /*- * Copyright (c) 1982, 1986, 1990, 1991, 1993 @@ -1765,7 +1765,7 @@ ttyecho(c, tp) if (!ISSET(tp->t_state, TS_CNTTB)) CLR(tp->t_lflag, FLUSHO); if ((!ISSET(tp->t_lflag, ECHO) && - (!ISSET(tp->t_lflag, ECHONL) || c == '\n')) || + (!ISSET(tp->t_lflag, ECHONL) || c != '\n')) || ISSET(tp->t_lflag, EXTPROC)) return; if (ISSET(tp->t_lflag, ECHOCTL) && -- 2.20.1