Unnamed repository; edit this file 'description' to name the repository.
Keep editor from switching to normal mode when loading a Document (#11176)
FlorianNAdam 2024-07-15
parent 702a96d · commit 6345b78
-rw-r--r--helix-view/src/editor.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 3eeb4830..50b6c931 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -1544,7 +1544,9 @@ impl Editor {
return;
}
- self.enter_normal_mode();
+ if !matches!(action, Action::Load) {
+ self.enter_normal_mode();
+ }
match action {
Action::Replace => {