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/main.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/main.cc')
| -rw-r--r-- | src/main.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main.cc b/src/main.cc index 85d79ea7..b5b5cddc 100644 --- a/src/main.cc +++ b/src/main.cc @@ -48,7 +48,9 @@ static const char* startup_info = " * `*` will now strip surrounding whitespaces from the selection\n" " * lint/grep/make next/prev commands have been renamed to more\n" " explicit names (lint-next-error, grep-previous-match, ...)\n" -" * ctags commands have been renamed to use the ctags- prefix\n"; +" * ctags commands have been renamed to use the ctags- prefix\n" +" * completion_extra_word_char option is now extra_word_chars (note the plural form)\n" +" and is used for word selection commands\n"; struct startup_error : runtime_error { @@ -251,7 +253,7 @@ static void check_timeout(const int& timeout) throw runtime_error{"the minimum acceptable timeout is 50 milliseconds"}; } -static void check_extra_word_char(const Vector<Codepoint, MemoryDomain::Options>& extra_chars) +static void check_extra_word_chars(const Vector<Codepoint, MemoryDomain::Options>& extra_chars) { if (contains_that(extra_chars, is_blank)) throw runtime_error{"blanks are not accepted for extra completion characters"}; @@ -324,8 +326,8 @@ void register_options() reg.declare_option("debug", "various debug flags", DebugFlags::None); reg.declare_option("readonly", "prevent buffers from being modified", false); - reg.declare_option<Vector<Codepoint, MemoryDomain::Options>, check_extra_word_char>( - "completion_extra_word_char", + reg.declare_option<Vector<Codepoint, MemoryDomain::Options>, check_extra_word_chars>( + "extra_word_chars", "Additional characters to be considered as words for insert completion", {}); } |
