diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-06-26 15:28:41 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-06-26 15:28:41 +0100 |
| commit | f41d78083aa8d3883bcd4ed819e6784e09e69dba (patch) | |
| tree | a67d2432ecf7f2ed499760eb245120dcae0221f5 /src/word_db.cc | |
| parent | dc378aed7290eb9fd90b752a2841fa2457bb91d0 (diff) | |
Use the extra_word_chars option in word based normal commands
the completion_extra_word_chars is now gone, superseeded by
extra_word_chars that gets used both for completion and for normal mode.
Fixes #1304
Diffstat (limited to 'src/word_db.cc')
| -rw-r--r-- | src/word_db.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/word_db.cc b/src/word_db.cc index a486b86b..8bcfa250 100644 --- a/src/word_db.cc +++ b/src/word_db.cc @@ -32,7 +32,7 @@ static WordList get_words(StringView content, ConstArrayView<Codepoint> extra_wo static ConstArrayView<Codepoint> get_extra_word_chars(const Buffer& buffer) { - return buffer.options()["completion_extra_word_char"].get<Vector<Codepoint, MemoryDomain::Options>>(); + return buffer.options()["extra_word_chars"].get<Vector<Codepoint, MemoryDomain::Options>>(); } void WordDB::add_words(StringView line) @@ -147,7 +147,7 @@ void WordDB::update_db() void WordDB::on_option_changed(const Option& option) { - if (option.name() == "completion_extra_word_char") + if (option.name() == "extra_word_chars") rebuild_db(); } |
