Skip to content

Commit

Permalink
Keep editor from switching to normal mode when loading a Document (he…
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianNAdam authored and rmburg committed Jan 20, 2025
1 parent f259305 commit 26ca7ea
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 26ca7ea

Please sign in to comment.