Skip to content

Commit

Permalink
Keep editor from switching to normal mode when loading a Document (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianNAdam authored Jul 15, 2024
1 parent 702a96d commit 6345b78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,9 @@ impl Editor {
return;
}

self.enter_normal_mode();
if !matches!(action, Action::Load) {
self.enter_normal_mode();
}

match action {
Action::Replace => {
Expand Down

0 comments on commit 6345b78

Please sign in to comment.