diff options
Diffstat (limited to 'src/AutoComplete.cxx')
-rw-r--r-- | src/AutoComplete.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index caf396ba2..2487d3042 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -299,7 +299,7 @@ void AutoComplete::Select(const char *word) { if (autoSort == Ordering::Custom) { // Check for a logically earlier match for (int i = location + 1; i <= end; ++i) { - std::string item = lb->GetValue(sortMatrix[i]); + const std::string item = lb->GetValue(sortMatrix[i]); if (CompareNCaseInsensitive(word, item.c_str(), lenWord)) break; if (sortMatrix[i] < sortMatrix[location] && !strncmp(word, item.c_str(), lenWord)) |