[newlib-cygwin] Cygwin: console: Remove unnecessary (redundant) code.

Takashi Yano tyan0@sourceware.org
Sat Feb 5 08:01:43 GMT 2022


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=44d870417997fdd0501f6baf7fccaed00e25602f

commit 44d870417997fdd0501f6baf7fccaed00e25602f
Author: Takashi Yano <takashi.yano@nifty.ne.jp>
Date:   Sat Feb 5 16:52:33 2022 +0900

    Cygwin: console: Remove unnecessary (redundant) code.

Diff:
---
 winsup/cygwin/fhandler_console.cc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index fa5d7ce9c..7a1a45bc1 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -2177,7 +2177,6 @@ fhandler_console::char_command (char c)
 	      if (y == con.b.srWindow.Bottom)
 		{
 		  WriteConsoleW (get_output_handle (), L"\033[2K", 4, 0, 0);
-		  wpbuf.empty ();
 		  break;
 		}
 	      if (y == con.b.srWindow.Top
@@ -2222,7 +2221,6 @@ fhandler_console::char_command (char c)
 	      if (y == con.b.srWindow.Bottom)
 		{
 		  WriteConsoleW (get_output_handle (), L"\033[2K", 4, 0, 0);
-		  wpbuf.empty ();
 		  break;
 		}
 	      __small_swprintf (bufw, L"\033[%d;%dr",


More information about the Cygwin-cvs mailing list