fix #88
This commit is contained in:
parent
f10e9d1794
commit
adc3ae053a
1 changed files with 2 additions and 1 deletions
|
@ -147,6 +147,7 @@ pub fn show(config: &Arc<RwLock<Config>>) -> Result<(), Error> {
|
||||||
let mut cache = provider.lock().unwrap().drun.cache.clone();
|
let mut cache = provider.lock().unwrap().drun.cache.clone();
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
|
provider.lock().unwrap().last_mode = None;
|
||||||
let selection_result = gui::show(
|
let selection_result = gui::show(
|
||||||
config,
|
config,
|
||||||
Arc::clone(&arc_provider),
|
Arc::clone(&arc_provider),
|
||||||
|
@ -154,7 +155,7 @@ pub fn show(config: &Arc<RwLock<Config>>) -> Result<(), Error> {
|
||||||
Some(
|
Some(
|
||||||
vec!["ssh", "emoji", "^\\$\\w+", "^\\?\\s*"]
|
vec!["ssh", "emoji", "^\\$\\w+", "^\\?\\s*"]
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|s| Regex::new(s).unwrap()) // Consider precompiling if s is constant
|
.map(|s| Regex::new(s).unwrap())
|
||||||
.collect(),
|
.collect(),
|
||||||
),
|
),
|
||||||
ExpandMode::Verbatim,
|
ExpandMode::Verbatim,
|
||||||
|
|
Loading…
Add table
Reference in a new issue