Switch s_write to accepting const vector & instead of raw pointers

This commit is contained in:
ridiculousfish
2019-03-03 18:49:57 -08:00
parent ccbc9d57f2
commit 89a7cc5da3
3 changed files with 11 additions and 12 deletions

View File

@@ -638,8 +638,8 @@ void reader_data_t::repaint() {
bool focused_on_pager = active_edit_line() == &pager.search_field_line;
size_t cursor_position = focused_on_pager ? pager.cursor_position() : cmd_line->position;
s_write(&screen, left_prompt_buff, right_prompt_buff, full_line, cmd_line->size(), &colors[0],
&indents[0], cursor_position, current_page_rendering, focused_on_pager);
s_write(&screen, left_prompt_buff, right_prompt_buff, full_line, cmd_line->size(), colors,
indents, cursor_position, current_page_rendering, focused_on_pager);
repaint_needed = false;
}