From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id C24FA385E013; Mon, 19 Apr 2021 14:19:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C24FA385E013 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: console: Fix a bug in the code to fix tab position. X-Act-Checkin: newlib-cygwin X-Git-Author: Takashi Yano X-Git-Refname: refs/heads/master X-Git-Oldrev: 456c3a46386f38887407603b2c64b7f63a4871c5 X-Git-Newrev: a648c15309544d72d21b1d06eb9d0712a34220ae Message-Id: <20210419141932.C24FA385E013@sourceware.org> Date: Mon, 19 Apr 2021 14:19:32 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2021 14:19:32 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a648c15309544d72d21b1d06eb9d0712a34220ae commit a648c15309544d72d21b1d06eb9d0712a34220ae Author: Takashi Yano Date: Mon Apr 19 19:31:51 2021 +0900 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. Diff: --- winsup/cygwin/fhandler_console.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 0b33a1370..62ee9e07f 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); }