From 5af16a0159fa44f4e9afbc37cbb9c9e6063fdd06 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Thu, 27 Jul 2000 23:58:35 +0000 Subject: Move terminal descriptor flush before stty to eliminate potential problems whith characters conversion changed like \n -> \r\n and so on. --- lib/libedit/read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libedit') diff --git a/lib/libedit/read.c b/lib/libedit/read.c index 2db1942e083f..8193431b258e 100644 --- a/lib/libedit/read.c +++ b/lib/libedit/read.c @@ -438,8 +438,8 @@ el_gets(el, nread) } } - (void) tty_cookedmode(el); /* make sure the tty is set up correctly */ term__flush(); /* flush any buffered output */ + (void) tty_cookedmode(el); /* make sure the tty is set up correctly */ if (el->el_flags & HANDLE_SIGNALS) sig_clr(el); if (nread) -- cgit v1.3