From 2f84051efbc6bb8b49e6e03d2a4c9375317c9238 Mon Sep 17 00:00:00 2001 From: Delapouite Date: Tue, 6 Jun 2017 12:04:53 +0200 Subject: [PATCH] Add underscore char as a valid punctuation for text-object pairs --- src/normal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/normal.cc b/src/normal.cc index c4b13046..5743e5a2 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -1146,7 +1146,7 @@ void select_object(Context& context, NormalParams params) pair_it->opening, pair_it->closing, count, flags)); - if (is_punctuation(cp)) + if (is_punctuation(cp) or cp == '_') { auto utf8cp = to_string(cp); return select_and_set_last(