summaryrefslogtreecommitdiffstats
path: root/lib/libedit/tty.c
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2016-02-08 12:16:01 +0000
committergjb <gjb@FreeBSD.org>2016-02-08 12:16:01 +0000
commita44dc347a772a938a3a1e624b4809e7b74f58feb (patch)
tree06859f2b48e0d90b7e6715c5a5045b4b24de5822 /lib/libedit/tty.c
parentb0e94739464da6f4e73a5f3e80ec779480d16892 (diff)
parent2ed1e2991e3970aeffef7be33b91401f0aeca84d (diff)
downloadFreeBSD-src-a44dc347a772a938a3a1e624b4809e7b74f58feb.zip
FreeBSD-src-a44dc347a772a938a3a1e624b4809e7b74f58feb.tar.gz
MFH
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'lib/libedit/tty.c')
-rw-r--r--lib/libedit/tty.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libedit/tty.c b/lib/libedit/tty.c
index ecf2e2a..a508e43 100644
--- a/lib/libedit/tty.c
+++ b/lib/libedit/tty.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tty.c,v 1.47 2015/05/14 10:44:15 christos Exp $ */
+/* $NetBSD: tty.c,v 1.49 2015/12/08 16:53:27 gson Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)tty.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: tty.c,v 1.47 2015/05/14 10:44:15 christos Exp $");
+__RCSID("$NetBSD: tty.c,v 1.49 2015/12/08 16:53:27 gson Exp $");
#endif
#endif /* not lint && not SCCSID */
#include <sys/cdefs.h>
@@ -582,6 +582,9 @@ protected void
/*ARGSUSED*/
tty_end(EditLine *el)
{
+ if (el->el_flags & EDIT_DISABLED)
+ return;
+
if (tty_setty(el, TCSAFLUSH, &el->el_tty.t_or) == -1) {
#ifdef DEBUG_TTY
(void) fprintf(el->el_errfile,
OpenPOWER on IntegriCloud