For me this happens only, if there exists a directory inside ~ that starts with h as well:
if there is none
~/h<Tab> -> Nothing happens
if there is e.g. "htest/" inside my home:
~/h<Tab> -> ~/home/zwieberl/htest
Also this happens only for h. ~/D<Tab> works as expected.
diff --git a/src/shell/completer.rs b/src/shell/completer.rsindex 1f8f37c..87277f8 100644--- a/src/shell/completer.rs+++ b/src/shell/completer.rs@@ -76,7 +76,7 @@ impl Completer for IonFileCompleter { // search pattern begins, and re-use that index to slice the completions so // that we may re-add the tilde character with the completion that follows. if let Some(completion) = iterator.next() {- if let Some(e_index) = completion.find(search) {+ if let Some(e_index) = completion.rfind(search) { completions.push(escape(&[tilde, &completion[e_index..]].concat())); for completion in iterator { let expanded = &completion[e_index..];