Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
sxyazi committed Sep 9, 2023
1 parent 7c87b6f commit 4d01119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/manager/tab.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{borrow::Cow, collections::{BTreeMap, BTreeSet}, ffi::{OsStr, OsString}, mem, time::Duration};

use anyhow::{bail, Error, Result};
use config::open::Opener;
use config::{keymap::{Exec, KeymapLayer}, open::Opener};
use shared::{Defer, Url};
use tokio::{pin, task::JoinHandle};
use tokio_stream::{wrappers::UnboundedReceiverStream, StreamExt};
Expand Down Expand Up @@ -246,7 +246,7 @@ impl Tab {
}

tokio::spawn(async move {
if let Ok(s) = emit!(Input(InputOpt::top("Find:"))).await {
if let Some(Ok(s)) = emit!(Input(InputOpt::top("Find:"))).recv().await {
emit!(Call(
Exec::call("find", vec![s]).with_bool("previous", prev).vec(),
KeymapLayer::Manager
Expand Down

0 comments on commit 4d01119

Please sign in to comment.