diff options
author | Denis Isidoro <denisidoro@users.noreply.github.com> | 2021-08-07 15:58:25 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-07 15:58:25 -0300 |
commit | 027ad539c2b5d7a5e29d043f31893f7352756321 (patch) | |
tree | e5e6f606f538b37b807babd82d2e933c0eac933a | |
parent | a36c26f92262118b47c35ce09867e557797822cf (diff) |
Fix navi fn welcome
-rw-r--r-- | src/finder/post.rs | 2 | ||||
-rw-r--r-- | src/welcome.rs | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/finder/post.rs b/src/finder/post.rs index 4ddbe0e..341cfca 100644 --- a/src/finder/post.rs +++ b/src/finder/post.rs @@ -69,7 +69,7 @@ pub(super) fn parse_output_single(mut text: String, suggestion_type: SuggestionT SuggestionType::SingleSelection => text .lines() .next() - .context("Not sufficient data for single selection")? + .context("No sufficient data for single selection")? .to_string(), SuggestionType::MultipleSelections | SuggestionType::Disabled | SuggestionType::SnippetSelection => { let len = text.len(); diff --git a/src/welcome.rs b/src/welcome.rs index 0bb6f75..55d8d50 100644 --- a/src/welcome.rs +++ b/src/welcome.rs @@ -1,6 +1,7 @@ use crate::actor; use crate::config::CONFIG; use crate::extractor; +use crate::finder::structures::Opts as FinderOpts; use crate::finder::Finder; use crate::structures::cheat::VariableMap; use crate::structures::item::Item; @@ -11,7 +12,7 @@ use std::io::Write; pub fn main() -> Result<()> { let config = &CONFIG; - let opts = Default::default(); + let opts = FinderOpts::snippet_default(); let (raw_selection, variables, files) = config .finder() |