diff --git a/src/highlight.cpp b/src/highlight.cpp index ef9a9c900..40e20c68e 100644 --- a/src/highlight.cpp +++ b/src/highlight.cpp @@ -544,7 +544,7 @@ static void color_string_internal(const wcstring &buffstr, highlight_spec_t base } enum { e_unquoted, e_single_quoted, e_double_quoted } mode = e_unquoted; - maybe_t unclosed_quote_offset; + maybe_t unclosed_quote_offset = none(); int bracket_count = 0; for (size_t in_pos = 0; in_pos < buff_len; in_pos++) { const wchar_t c = buffstr.at(in_pos);