Fix a CRNL/NLCR botch I made after looking this up in the X/Open spec.

Fixes PR 3453; from John Kohl and Enami Tsugutomo.
This commit is contained in:
kleink 1997-04-07 16:09:28 +00:00
parent 52e73da1a4
commit a0dca5145e
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tty.c,v 1.88 1997/04/06 14:44:44 kleink Exp $ */
/* $NetBSD: tty.c,v 1.89 1997/04/07 16:09:28 kleink Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1991, 1993
@ -637,7 +637,7 @@ ttyoutput(c, tp)
case CONTROL:
break;
case NEWLINE:
if (ISSET(tp->t_oflag, OCRNL))
if (ISSET(tp->t_oflag, ONLCR))
col = 0;
break;
case RETURN: