From 6653582f0a9fe7b6a36519a70856382e107c905e Mon Sep 17 00:00:00 2001 From: RichardHitt Date: Wed, 8 Oct 2014 16:42:41 -0700 Subject: [PATCH] Fix textbox not scrolling to to bottom on resize Set buf->scrollbar_down conditionally when vertically resizing text window If resize to enlarge appears to go to last line, set buf->scrollbar_down to be sure. Fixes #1151 Closes #1171 --- src/fe-gtk/xtext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c index 6a499f52..7b0e64c6 100644 --- a/src/fe-gtk/xtext.c +++ b/src/fe-gtk/xtext.c @@ -484,7 +484,10 @@ gtk_xtext_adjustment_set (xtext_buffer *buf, int fire_signal) adj->page_increment = adj->page_size; if (adj->value > adj->upper - adj->page_size) + { + buf->scrollbar_down = TRUE; adj->value = adj->upper - adj->page_size; + } if (adj->value < 0) adj->value = 0;