summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-11-27 18:13:29 +1100
committerMaxime Coste <mawww@kakoune.org>2018-11-27 18:16:21 +1100
commit1553d91d278ff943c3545e3cb0728acbf4cf433d (patch)
tree9d795b13e34e98199c005ba06bf6ffba8fec386a /src/normal.cc
parent6c54c4740d2144e897cad5b033ab160b3ab2ddff (diff)
Make '_' the default extra_word_chars, and remove built-in support
Fixes #2599
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc2
1 files changed, 1 insertions, 1 deletions
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<mode>(