aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2021-04-19 19:31:51 +0900
committerCorinna Vinschen <corinna@vinschen.de>2021-04-19 16:17:12 +0200
commita648c15309544d72d21b1d06eb9d0712a34220ae (patch)
tree477390f5e0de49a7058109560d69659d7d68ff9a
parent456c3a46386f38887407603b2c64b7f63a4871c5 (diff)
downloadnewlib-a648c15309544d72d21b1d06eb9d0712a34220ae.zip
newlib-a648c15309544d72d21b1d06eb9d0712a34220ae.tar.gz
newlib-a648c15309544d72d21b1d06eb9d0712a34220ae.tar.bz2
Cygwin: console: Fix a bug in the code to fix tab position.
- With this patch, a bug in the code to fix tab position after resizing window is fixed.
-rw-r--r--winsup/cygwin/fhandler_console.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 0b33a13..62ee9e0 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -308,7 +308,7 @@ fhandler_console::cons_master_thread (handle_set_t *p, tty *ttyp)
/* Re-setting ENABLE_VIRTUAL_TERMINAL_PROCESSING
fixes the tab position. */
set_output_mode (tty::restore, &ti, p);
- set_input_mode (tty::cygwin, &ti, p);
+ set_output_mode (tty::cygwin, &ti, p);
}
ttyp->kill_pgrp (SIGWINCH);
}