summaryrefslogtreecommitdiff
path: root/src/insert_completer.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-03-07 00:30:54 +0000
committerMaxime Coste <mawww@kakoune.org>2017-03-07 01:03:26 +0000
commit6373338c50a9431de7440b9274a079b4dc6c5755 (patch)
tree2e4d3be457593b1ca23a5d19eb8b17232ed5fafa /src/insert_completer.cc
parente9f93f1b2f0e650ab346596ee6b6bb6e90f55504 (diff)
Replace uses of UnorderedMap with HashMap
Diffstat (limited to 'src/insert_completer.cc')
-rw-r--r--src/insert_completer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/insert_completer.cc b/src/insert_completer.cc
index 1bc30ea4..d54b85e3 100644
--- a/src/insert_completer.cc
+++ b/src/insert_completer.cc
@@ -91,7 +91,7 @@ InsertCompletion complete_word(const SelectionList& sels, const OptionManager& o
BufferCoord word_begin;
StringView prefix;
- UnorderedMap<StringView, int> sel_word_counts;
+ HashMap<StringView, int> sel_word_counts;
for (int i = 0; i < sels.size(); ++i)
{
Utf8It end{buffer.iterator_at(sels[i].cursor()), buffer};
@@ -136,8 +136,8 @@ InsertCompletion complete_word(const SelectionList& sels, const OptionManager& o
// Remove words that are being edited
for (auto& word_count : sel_word_counts)
{
- if (get_word_db(buffer).get_word_occurences(word_count.first) <= word_count.second)
- unordered_erase(matches, word_count.first);
+ if (get_word_db(buffer).get_word_occurences(word_count.key) <= word_count.value)
+ unordered_erase(matches, word_count.key);
}
if (other_buffers)