nu-cli/completions: fix file completions filtering (#5122)

This commit is contained in:
Herlon Aguiar
2022-04-07 21:31:56 +02:00
committed by GitHub
parent 4129f15eb9
commit 5e177fe8e7
2 changed files with 6 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ where
}
}
fn is_punctuator_char(&mut self, ch: u8) -> bool {
fn is_punctuator_char(&self, ch: u8) -> bool {
matches!(ch, b'{' | b'}' | b'[' | b']' | b',' | b':')
}