Pass in variables directly to screen_t::update

This fixes a TODO. No functional change.
This commit is contained in:
ridiculousfish
2021-09-22 20:46:36 -07:00
parent 8878672014
commit 13fd3f7a76
3 changed files with 11 additions and 12 deletions

View File

@@ -1093,8 +1093,8 @@ void reader_data_t::paint_layout(const wchar_t *reason) {
// Prepend the mode prompt to the left prompt.
screen.write(mode_prompt_buff + left_prompt_buff, right_prompt_buff, full_line,
cmd_line->size(), colors, indents, data.position, pager, current_page_rendering,
data.focused_on_pager);
cmd_line->size(), colors, indents, data.position, parser().vars(), pager,
current_page_rendering, data.focused_on_pager);
}
/// Internal helper function for handling killing parts of text.