aboutsummaryrefslogtreecommitdiffstats
path: root/src/command
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command/client/search.rs2
-rw-r--r--src/command/client/search/interactive.rs4
2 files changed, 5 insertions, 1 deletions
diff --git a/src/command/client/search.rs b/src/command/client/search.rs
index 9321f117..f437783d 100644
--- a/src/command/client/search.rs
+++ b/src/command/client/search.rs
@@ -88,7 +88,9 @@ impl Cmd {
if self.filter_mode.is_some() {
settings.filter_mode = self.filter_mode.unwrap();
}
+
settings.shell_up_key_binding = self.shell_up_key_binding;
+
if self.interactive {
let item = interactive::history(&self.query, settings, db).await?;
eprintln!("{item}");
diff --git a/src/command/client/search/interactive.rs b/src/command/client/search/interactive.rs
index 9e7d3409..01175b52 100644
--- a/src/command/client/search/interactive.rs
+++ b/src/command/client/search/interactive.rs
@@ -427,7 +427,9 @@ pub async fn history(
results_state: ListState::default(),
context: current_context(),
filter_mode: if settings.shell_up_key_binding {
- settings.filter_mode_shell_up_key_binding
+ settings
+ .filter_mode_shell_up_key_binding
+ .unwrap_or(settings.filter_mode)
} else {
settings.filter_mode
},