Skip to content

Commit 005f4c6

Browse files
author
Houkime
committed
autopairs-removal: limit to one-char selections
1 parent e7e591e commit 005f4c6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

helix-term/src/commands.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2999,7 +2999,9 @@ pub mod insert {
29992999
auto_pairs,
30003000
) {
30013001
(Some(_x), Some(_y), Some(ap))
3002-
if ap.get(_x).is_some() && (ap.get(_x).unwrap().close == _y) =>
3002+
if range.len() == 1
3003+
&& ap.get(_x).is_some()
3004+
&& ap.get(_x).unwrap().close == _y =>
30033005
// delete both autopaired characters
30043006
{
30053007
(

0 commit comments

Comments
 (0)