diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-07-27 00:14:49 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-07-27 00:14:49 +0100 |
| commit | 35f1ad100ea8d8979382a4cf9be4fdb5e3e44899 (patch) | |
| tree | c937d6a638cd3b109f7ba63ba15d12a588c0709e /src | |
| parent | d9e6c3b89f26bc4c2b2d9f01be2bb0e4908f68e2 (diff) | |
| parent | ad288be1a057620aacc95e89a0f8c932f82f1221 (diff) | |
Merge remote-tracking branch 'lenormf/select-arbitrary-punctuation'
Diffstat (limited to 'src')
| -rw-r--r-- | src/normal.cc | 8 |
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" |
