From 1553d91d278ff943c3545e3cb0728acbf4cf433d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 27 Nov 2018 18:13:29 +1100 Subject: Make '_' the default extra_word_chars, and remove built-in support Fixes #2599 --- src/normal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/normal.cc') diff --git a/src/normal.cc b/src/normal.cc index 9300bda5..40200029 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1327,7 +1327,7 @@ void select_object(Context& context, NormalParams params) return; const Codepoint cp = *key.codepoint(); - if (is_punctuation(cp) or cp == '_') + if (is_punctuation(cp, {})) { auto re = Regex{"\\Q" + to_string(cp), RegexCompileFlags::Backward}; return select_and_set_last( -- cgit v1.2.3