Allow selection primitives to use arbitrary punctuation signs
This commit is contained in:
parent
8c05d9e146
commit
f04a7a0ed3
|
@ -996,6 +996,14 @@ void select_object(Context& context, NormalParams params)
|
||||||
sur.opening, sur.closing,
|
sur.opening, sur.closing,
|
||||||
level, flags));
|
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(),
|
}, get_title(),
|
||||||
"b,(,): parenthesis block\n"
|
"b,(,): parenthesis block\n"
|
||||||
"B,{,}: braces block \n"
|
"B,{,}: braces block \n"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user