mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-21 17:06:18 +04:00
Keep editor from switching to normal mode when loading a Document (#11176)
This commit is contained in:
parent
702a96d417
commit
6345b78409
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user