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/insert_completer.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/insert_completer.cc')
| -rw-r--r-- | src/insert_completer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insert_completer.cc b/src/insert_completer.cc index dd259756..087dd00a 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -79,8 +79,8 @@ WordDB& get_word_db(const Buffer& buffer) template<bool other_buffers> InsertCompletion complete_word(const SelectionList& sels, const OptionManager& options) { - auto& extra_word_char = options["completion_extra_word_char"].get<Vector<Codepoint, MemoryDomain::Options>>(); - auto is_word_pred = [extra_word_char](Codepoint c) { return is_word(c) or contains(extra_word_char, c); }; + ConstArrayView<Codepoint> extra_word_chars = options["extra_word_chars"].get<Vector<Codepoint, MemoryDomain::Options>>(); + auto is_word_pred = [extra_word_chars](Codepoint c) { return is_word(c, extra_word_chars); }; const Buffer& buffer = sels.buffer(); BufferCoord cursor_pos = sels.main().cursor(); |
