Skip to content

Commit

Permalink
Replace current file when loading in background from picker (#12605)
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-elias-alvarez authored Jan 23, 2025
1 parent 4304149 commit d123193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helix-term/src/ui/picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ impl<I: 'static + Send + Sync, D: 'static + Send + Sync> Component for Picker<I,
key!(Esc) | ctrl!('c') => 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) => {
Expand Down

0 comments on commit d123193

Please sign in to comment.