mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-25 01:34:02 +00:00
Fix autoclose skipping when start and end are the same character
This commit is contained in:
parent
8b43368bf9
commit
cb9534eae0
1 changed files with 3 additions and 1 deletions
|
@ -2080,7 +2080,9 @@ impl Editor {
|
|||
));
|
||||
continue;
|
||||
}
|
||||
} else if let Some(region) = autoclose_region {
|
||||
}
|
||||
|
||||
if let Some(region) = autoclose_region {
|
||||
// If the selection is followed by an auto-inserted closing bracket,
|
||||
// then don't insert that closing bracket again; just move the selection
|
||||
// past the closing bracket.
|
||||
|
|
Loading…
Reference in a new issue