Committing now before huge refactor based on inspiration from the fish codebase
This commit is contained in:
@@ -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()))) &&
|
||||
(
|
||||
|
||||
1
src/filewithareallyreallyreallyreallylongname.txt
Normal file
1
src/filewithareallyreallyreallyreallylongname.txt
Normal file
@@ -0,0 +1 @@
|
||||
foo
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user