From 4d487f711d75f19ec78a3743ea60b04185a45fc0 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Mon, 1 Jun 2020 15:52:15 +0200 Subject: [PATCH] Don't use cbegin/cend This has problems on old gcc, and isn't super necessary. --- src/screen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screen.cpp b/src/screen.cpp index 3357a6e66..e930bbdb4 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -259,8 +259,8 @@ size_t layout_cache_t::escape_code_length(const wchar_t *code) { const layout_cache_t::prompt_cache_entry_t *layout_cache_t::find_prompt_layout( const wcstring &input, size_t max_line_width) { - auto start = prompt_cache_.cbegin(); - auto end = prompt_cache_.cend(); + auto start = prompt_cache_.begin(); + auto end = prompt_cache_.end(); for (auto iter = start; iter != end; ++iter) { if (iter->text == input && iter->max_line_width == max_line_width) { // Found it. Move it to the front if not already there.