Various tweaks and improvements to new pager, including disclosure

feature
This commit is contained in:
ridiculousfish
2014-01-22 17:45:27 -08:00
parent ee9a4082b6
commit 7d3f808e4c
5 changed files with 82 additions and 19 deletions

View File

@@ -546,7 +546,8 @@ static void reader_repaint()
indents.resize(len);
// Re-render our completions page if necessary
data->pager.set_term_size(common_get_width(), 8 /* common_get_height() */);
// We set the term size to 1 less than the true term height. This means we will always show the (bottom) line of the prompt.
data->pager.set_term_size(maxi(1, common_get_width()), maxi(1, common_get_height() - 1));
data->pager.update_rendering(&data->current_page_rendering);
s_write(&data->screen,