diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 9278211caf9f..4470bd5f4fc4 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -2999,7 +2999,9 @@ pub mod insert { auto_pairs, ) { (Some(_x), Some(_y), Some(ap)) - if ap.get(_x).is_some() && (ap.get(_x).unwrap().close == _y) => + if range.len() == 1 + && ap.get(_x).is_some() + && ap.get(_x).unwrap().close == _y => // delete both autopaired characters { (