summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
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>(