mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 14:48:44 +02:00
A random set of fixes (#1600)
This commit is contained in:
@ -69,15 +69,15 @@ impl NuCompleter {
|
||||
|
||||
for command in commands.iter() {
|
||||
let mut pos = replace_pos;
|
||||
let mut matched = true;
|
||||
let mut matched = false;
|
||||
if pos < line_chars.len() {
|
||||
for chr in command.chars() {
|
||||
if line_chars[pos] != chr {
|
||||
matched = false;
|
||||
break;
|
||||
}
|
||||
pos += 1;
|
||||
if pos == line_chars.len() {
|
||||
matched = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user