Teach screen how to render completion page. Correct spacing in

completion page contents.
This commit is contained in:
ridiculousfish
2014-01-14 15:39:53 -08:00
parent 4a20febe96
commit 295c8f48a6
5 changed files with 51 additions and 11 deletions

View File

@@ -1234,7 +1234,8 @@ void s_write(screen_t *s,
size_t explicit_len,
const int *colors,
const int *indent,
size_t cursor_pos)
size_t cursor_pos,
const screen_data_t *pager_data)
{
screen_data_t::cursor_t cursor_arr;
@@ -1321,6 +1322,13 @@ void s_write(screen_t *s,
}
s->desired.cursor = cursor_arr;
/* append pager_data */
if (pager_data != NULL)
{
s->desired.append_lines(*pager_data);
}
s_update(s, layout.left_prompt.c_str(), layout.right_prompt.c_str());
s_save_status(s);
}