Skip to content

Commit f2d9a5c

Browse files
committed
refactor: remove special treatment for ~
1 parent 04cbb17 commit f2d9a5c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

crates/nu-cli/src/completions/dotnu_completions.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ impl Completer for DotNuCompletion {
3535
let prefix_str = prefix_str.replace('`', "");
3636
let mut search_dirs: Vec<PathBuf> = vec![];
3737

38-
let (base, partial) = if prefix_str == "~" {
39-
("~", "")
40-
} else if let Some((parent, remain)) = prefix_str.rsplit_once(is_separator) {
38+
let (base, partial) = if let Some((parent, remain)) = prefix_str.rsplit_once(is_separator) {
4139
// If prefix_str is only a word we want to search in the current dir.
4240
// "/xx" should be split to "/" and "xx".
4341
if parent.is_empty() {

0 commit comments

Comments
 (0)