We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3969f2 commit 167dbc4Copy full SHA for 167dbc4
helix-term/src/commands.rs
@@ -4530,7 +4530,8 @@ fn surround_add(cx: &mut Context) {
4530
let (view, doc) = current!(cx.editor);
4531
let selection = doc.selection(view.id);
4532
let (open, close) = surround::get_pair(ch);
4533
- let surround_len = open.len_utf8() + close.len_utf8();
+ // The number of chars in get_pair
4534
+ let surround_len = 2;
4535
4536
let mut changes = Vec::with_capacity(selection.len() * 2);
4537
let mut ranges = SmallVec::with_capacity(selection.len());
0 commit comments