Fix auto pairs return wrong selection (#613)

This commit is contained in:
langbamit 2021-08-18 22:59:53 +07:00 committed by GitHub
parent 7560af1211
commit 36095326d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,6 +84,7 @@ fn handle_open(
match next { match next {
Some(ch) if !close_before.contains(ch) => { Some(ch) if !close_before.contains(ch) => {
offs += 1;
// TODO: else return (use default handler that inserts open) // TODO: else return (use default handler that inserts open)
(pos, pos, Some(Tendril::from_char(open))) (pos, pos, Some(Tendril::from_char(open)))
} }