From 36095326d0caed43959892a6b5f669833f2a747c Mon Sep 17 00:00:00 2001 From: langbamit <43192714+langbamit@users.noreply.github.com> Date: Wed, 18 Aug 2021 22:59:53 +0700 Subject: [PATCH] Fix auto pairs return wrong selection (#613) --- helix-core/src/auto_pairs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/helix-core/src/auto_pairs.rs b/helix-core/src/auto_pairs.rs index d9569acd7..9b901e9b1 100644 --- a/helix-core/src/auto_pairs.rs +++ b/helix-core/src/auto_pairs.rs @@ -84,6 +84,7 @@ fn handle_open( match next { Some(ch) if !close_before.contains(ch) => { + offs += 1; // TODO: else return (use default handler that inserts open) (pos, pos, Some(Tendril::from_char(open))) }