From f9aea9044887ee8f179385e430b893f48b784cff Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 27 Jan 2013 17:20:47 +0100 Subject: fixed scintilla symbol autocompletion do not accidentally overwrite the Scintilla (SCI_...) message symbol set --- src/cmdline.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/cmdline.cpp b/src/cmdline.cpp index 195533f..4d9cfd6 100644 --- a/src/cmdline.cpp +++ b/src/cmdline.cpp @@ -160,18 +160,18 @@ process_edit_cmd(gchar key) g_free(new_chars); } else if (States::current == &States::scintilla_symbols) { const gchar *symbol = NULL; - SymbolList &list = Symbols::scintilla; + SymbolList *list = &Symbols::scintilla; gchar *new_chars; if (strings[0]) { symbol = last_occurrence(strings[0], ","); if (*symbol == ',') { symbol++; - list = Symbols::scilexer; + list = &Symbols::scilexer; } } - new_chars = symbol_complete(list, symbol, ','); + new_chars = symbol_complete(*list, symbol, ','); if (new_chars) g_stpcpy(insert, new_chars); g_free(new_chars); -- cgit v1.2.3