Skip to content
Snippets Groups Projects
Commit 5e2b08ab authored by Michael Aaron Murphy's avatar Michael Aaron Murphy
Browse files

Fix #557

Closes #557
parent 4928e8a8
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ impl Completer for IonFileCompleter { ...@@ -76,7 +76,7 @@ impl Completer for IonFileCompleter {
// search pattern begins, and re-use that index to slice the completions so // 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. // that we may re-add the tilde character with the completion that follows.
if let Some(completion) = iterator.next() { 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())); completions.push(escape(&[tilde, &completion[e_index..]].concat()));
for completion in iterator { for completion in iterator {
let expanded = &completion[e_index..]; let expanded = &completion[e_index..];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment