@@ -4332,10 +4332,12 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
4332 'o' => textobject_treesitter("comment", range),
4332 'o' => textobject_treesitter("comment", range),
4333 't' => textobject_treesitter("test", range),
4333 't' => textobject_treesitter("test", range),
4334 'p' => textobject::textobject_paragraph(text, range, objtype, count),
4334 'p' => textobject::textobject_paragraph(text, range, objtype, count),
4335+ 'm' => textobject::textobject_pair_surround_closest(
4335− 'm' => textobject::textobject_surround_closest(text, range, objtype, count),
4336+ text, range, objtype, count,
4336 // TODO: cancel new ranges if inconsistent surround matches across lines
4338 // TODO: cancel new ranges if inconsistent surround matches across lines
4337 ch if !ch.is_ascii_alphanumeric() => {
4339 ch if !ch.is_ascii_alphanumeric() => {
4338− textobject::textobject_surround(text, range, objtype, ch, count)
4340+ textobject::textobject_pair_surround(text, range, objtype, ch, count)
4340 _ => range,
4342 _ => range,
@@ -4361,7 +4363,7 @@ fn select_textobject(cx: &mut Context, objtype: textobject::TextObject) {
4361 ("a", "Argument/parameter (tree-sitter)"),
4363 ("a", "Argument/parameter (tree-sitter)"),
4362 ("o", "Comment (tree-sitter)"),
4364 ("o", "Comment (tree-sitter)"),
4363 ("t", "Test (tree-sitter)"),
4365 ("t", "Test (tree-sitter)"),
4364− ("m", "Matching delimiter under cursor"),
4366+ ("m", "Closest surrounding pair to cursor"),
4365 (" ", "... or any character acting as a pair"),
4367 (" ", "... or any character acting as a pair"),