From 36095326d0caed43959892a6b5f669833f2a747c Mon Sep 17 00:00:00 2001 From: langbamit Date: Wed, 18 Aug 2021 22:59:53 +0700 Subject: Fix auto pairs return wrong selection (#613) --- helix-core/src/auto_pairs.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'helix-core/src') diff --git a/helix-core/src/auto_pairs.rs b/helix-core/src/auto_pairs.rs index d9569acd..9b901e9b 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))) } -- cgit v1.2.3-70-g09d2