summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/less/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/less/screen.c b/usr.bin/less/screen.c
index 33851e506fd..76c99658857 100644
--- a/usr.bin/less/screen.c
+++ b/usr.bin/less/screen.c
@@ -425,10 +425,10 @@ raw_mode(on)
*/
s = save_term;
}
+ tcsetattr(tty, TCSASOFT | TCSADRAIN, &s);
#if HAVE_FSYNC
fsync(tty);
#endif
- tcsetattr(tty, TCSADRAIN, &s);
#if MUST_SET_LINE_DISCIPLINE
if (!on)
{