Fix autoclose skipping when start and end are the same character
This commit is contained in:
@@ -2080,7 +2080,9 @@ impl Editor {
|
|||||||
));
|
));
|
||||||
continue;
|
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,
|
// If the selection is followed by an auto-inserted closing bracket,
|
||||||
// then don't insert that closing bracket again; just move the selection
|
// then don't insert that closing bracket again; just move the selection
|
||||||
// past the closing bracket.
|
// past the closing bracket.
|
||||||
|
|||||||
Reference in New Issue
Block a user