From 9dc3c425adc73600aa726d361b7e5f47fe99a290 Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Fri, 4 Feb 2011 01:56:28 -0500 Subject: [PATCH] Fix bug in scrolling region reset --- terminalframebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminalframebuffer.cpp b/terminalframebuffer.cpp index 4bf8b7b..f217477 100644 --- a/terminalframebuffer.cpp +++ b/terminalframebuffer.cpp @@ -387,7 +387,7 @@ void DrawState::resize( int s_width, int s_height ) /* xterm and rxvt-unicode do this. gnome-terminal only resets scrolling region if it has to become smaller in resize */ scrolling_region_top_row = 0; - scrolling_region_bottom_row = height - 1; + scrolling_region_bottom_row = s_height - 1; } width = s_width;