aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src
diff options
context:
space:
mode:
authorlangbamit2021-08-18 15:59:53 +0000
committerGitHub2021-08-18 15:59:53 +0000
commit36095326d0caed43959892a6b5f669833f2a747c (patch)
treef3247e1d6e34f83c112d79d7f3eaf0fb17a9f20a /helix-core/src
parent7560af1211201bc644ea015f4a2b25ea8f2be34d (diff)
Fix auto pairs return wrong selection (#613)
Diffstat (limited to 'helix-core/src')
-rw-r--r--helix-core/src/auto_pairs.rs1
1 files changed, 1 insertions, 0 deletions
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)))
}