This commit is contained in:
Timothy Stack 2014-03-04 08:09:44 -08:00
parent d2b2846a92
commit 86e32f4b45

View File

@ -336,7 +336,7 @@ void readline_sqlite_highlighter(attr_line_t &al, int x)
pcre_context::capture_t *cap = pc.all();
struct line_range lr(cap->c_begin, cap->c_end);
string_attrs_t &sa = al.get_attrs();
string_attrs_t::const_iterator iter;
string_attrs_t::iterator iter;
while ((iter = find_string_attr(sa, lr)) != sa.end()) {
sa.erase(iter);