Committing now before huge refactor based on inspiration from the fish codebase

This commit is contained in:
2025-03-11 16:10:59 -04:00
parent e81c4903b9
commit 34cc2b3976
3 changed files with 3 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ fn expand_range(range: &str) -> Vec<String> {
if let Some((left,right)) = range.split_once("..") {
// I know, I know
// This is checking to see if the range looks like "a..b" or "A..B"
// one character on both sides, both are letters, and both are uppercase OR both are lowercase
// one character on both sides, both are letters, AND (both are uppercase OR both are lowercase)
if (left.len() == 1 && right.len() == 1) &&
(left.chars().all(|ch| ch.is_ascii_alphanumeric() && right.chars().all(|ch| ch.is_ascii_alphanumeric()))) &&
(

View File

@@ -0,0 +1 @@
foo

View File

@@ -52,7 +52,7 @@ impl<'a> Completer for SynHelper<'a> {
if let Some(selection) = fzf_comp(&comps, &mut shenv) {
return Ok((start, vec![selection]))
} else {
return Ok((start, comps))
return Ok((start, vec![]))
}
} else {
return Ok((start, comps))