From 4d011199818ea31ddf01a706e47cfa30e12deed8 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 9 Sep 2023 23:19:28 +0800 Subject: [PATCH] .. --- core/src/manager/tab.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/manager/tab.rs b/core/src/manager/tab.rs index 9af487f46..b2c5982da 100644 --- a/core/src/manager/tab.rs +++ b/core/src/manager/tab.rs @@ -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}; @@ -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