summaryrefslogtreecommitdiff
path: root/src/normal.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.cc')
-rw-r--r--src/normal.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/normal.cc b/src/normal.cc
index 50f7ca61..288b70e5 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -996,6 +996,14 @@ void select_object(Context& context, NormalParams params)
sur.opening, sur.closing,
level, flags));
}
+
+ if (is_punctuation(*cp))
+ {
+ StringView strview_codepoint{String(*cp)};
+ return select<mode>(context, std::bind(select_surrounding, _1, _2,
+ strview_codepoint, strview_codepoint,
+ level, flags));
+ }
}, get_title(),
"b,(,): parenthesis block\n"
"B,{,}: braces block \n"