summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 2d281e023..1162bfcad 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);