summaryrefslogtreecommitdiffstats
path: root/src/commands/show_help.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/show_help.rs')
-rw-r--r--src/commands/show_help.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands/show_help.rs b/src/commands/show_help.rs
index d77dd63..6c98f79 100644
--- a/src/commands/show_help.rs
+++ b/src/commands/show_help.rs
@@ -3,6 +3,7 @@ use std::cmp::Ordering;
use termion::event::{Event, Key};
use crate::config::clean::keymap::AppKeyMapping;
+use crate::context::remove_external_preview;
use crate::context::AppContext;
use crate::error::AppResult;
use crate::event::process_event;
@@ -30,7 +31,7 @@ pub fn help_loop(
widgets::get_keymap_table(&keymap_t.default_view, &search_query[1..], sort_by)
};
- context.remove_external_preview();
+ remove_external_preview(context);
backend.render(TuiHelp::new(&keymap, &mut offset, &search_query));
let event = match context.poll_event() {