on master help sign in
Fix auto pairs return wrong selection (#613)
commit36095326d0caed43959892a6b5f669833f2a747c authorlangbamit <43192714+langbamit@users.noreply.github.com> dateWed 18 Aug 2021, 22:59 (5 years ago) parent7560af1
1 file changed+1
helix-core/src/auto_pairs.rs+1
helix-core/src/auto_pairs.rs+1
@@ -84,6 +84,7 @@ fn handle_open(
8484
8585 match next {
8686 Some(ch) if !close_before.contains(ch) => {
87+ offs += 1;
8788 // TODO: else return (use default handler that inserts open)
8889 (pos, pos, Some(Tendril::from_char(open)))
8990 }