Keep editor from switching to normal mode when loading a Document (#11176)

This commit is contained in:
FlorianNAdam 2024-07-15 15:48:37 +02:00 committed by GitHub
parent 702a96d417
commit 6345b78409
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1544,7 +1544,9 @@ pub fn switch(&mut self, id: DocumentId, action: Action) {
return;
}
self.enter_normal_mode();
if !matches!(action, Action::Load) {
self.enter_normal_mode();
}
match action {
Action::Replace => {