mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
Use cbegin() in one place in reader
This commit is contained in:
parent
d2455bdd5a
commit
95c97619c6
1 changed files with 1 additions and 1 deletions
|
@ -631,7 +631,7 @@ void reader_data_t::repaint() {
|
|||
// Re-render our completions page if necessary. Limit the term size of the pager to the true
|
||||
// term size, minus the number of lines consumed by our string. (Note this doesn't yet consider
|
||||
// wrapping).
|
||||
int full_line_count = 1 + std::count(full_line.begin(), full_line.end(), '\n');
|
||||
int full_line_count = 1 + std::count(full_line.cbegin(), full_line.cend(), '\n');
|
||||
pager.set_term_size(std::max(1, common_get_width()),
|
||||
std::max(1, common_get_height() - full_line_count));
|
||||
pager.update_rendering(¤t_page_rendering);
|
||||
|
|
Loading…
Reference in a new issue