on master help sign in
Fix auto pairs return wrong selection (#613)
3609532langbamit
helix-core/src/auto_pairs.rs+1
@@ -84,6 +84,7 @@ fn handle_open(
84
84
85 match next {
85 match next {
86 Some(ch) if !close_before.contains(ch) => {
86 Some(ch) if !close_before.contains(ch) => {
87+ offs += 1;
87 // TODO: else return (use default handler that inserts open)
88 // TODO: else return (use default handler that inserts open)
88 (pos, pos, Some(Tendril::from_char(open)))
89 (pos, pos, Some(Tendril::from_char(open)))
89 }
90 }