This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] Fix copy/paste typo in fhandler_console::scroll_buffer_screen
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 24 Nov 2016 13:44:00 -0000
- Subject: [newlib-cygwin] Fix copy/paste typo in fhandler_console::scroll_buffer_screen
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=284bec317499b1d1f92b82b67d73f4995c9a20c1
commit 284bec317499b1d1f92b82b67d73f4995c9a20c1
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Thu Nov 24 14:43:52 2016 +0100
Fix copy/paste typo in fhandler_console::scroll_buffer_screen
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
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 2d281e0..1162bfc 100644
--- a/winsup/cygwin/fhandler_console.cc
+++ b/winsup/cygwin/fhandler_console.cc
@@ -799,7 +799,7 @@ fhandler_console::scroll_buffer_screen (int x1, int y1, int x2, int y2, int xn,
if (y1 >= 0)
y1 += con.b.srWindow.Top;
if (y2 >= 0)
- y1 += con.b.srWindow.Top;
+ y2 += con.b.srWindow.Top;
if (yn >= 0)
yn += con.b.srWindow.Top;
con.scroll_buffer (get_output_handle (), x1, y1, x2, y2, xn, yn);