diff --git a/helix-term/src/ui/picker.rs b/helix-term/src/ui/picker.rs index df8d52ebd..9b8255831 100644 --- a/helix-term/src/ui/picker.rs +++ b/helix-term/src/ui/picker.rs @@ -1014,7 +1014,7 @@ impl Component for Picker return close_fn(self), alt!(Enter) => { if let Some(option) = self.selection() { - (self.callback_fn)(ctx, option, Action::Load); + (self.callback_fn)(ctx, option, Action::Replace); } } key!(Enter) => {