Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Akmadan23 committed Apr 8, 2024
1 parent 77c6865 commit b26ee32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/commands/fzf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use std::str::from_utf8;

use crate::config::clean::app::search::CaseSensitivity;
use crate::context::AppContext;
use crate::context::remove_external_preview;
use crate::error::{AppError, AppResult};
use crate::ui::AppBackend;

Expand Down Expand Up @@ -51,13 +52,13 @@ pub fn fzf_multi(
}

fn fzf_impl(
_context: &mut AppContext,
context: &mut AppContext,
backend: &mut AppBackend,
items: Vec<String>,
args: Vec<String>,
) -> AppResult<String> {
remove_external_preview(context);
backend.terminal_drop();
context.remove_external_preview();

let mut cmd = Command::new("fzf");
cmd.stdout(Stdio::piped()).args(&args);
Expand Down
3 changes: 2 additions & 1 deletion src/commands/show_tasks.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::config::clean::keymap::AppKeyMapping;
use crate::context::AppContext;
use crate::context::remove_external_preview;
use crate::error::AppResult;
use crate::event::process_event;
use crate::event::AppEvent;
Expand All @@ -14,7 +15,7 @@ pub fn show_tasks(
keymap_t: &AppKeyMapping,
) -> AppResult {
context.flush_event();
context.remove_external_preview();
remove_external_preview(context);

let mut exit = false;

Expand Down

0 comments on commit b26ee32

Please sign in to comment.