mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-11 22:21:14 -03:00
Fixup formatting
This commit is contained in:
@@ -5124,8 +5124,7 @@ fn compute_and_apply_completions(&mut self, c: ReadlineCmd, rls: &mut ReadlineLo
|
||||
fn try_insert(&mut self, c: &Completion, tok: &wstr, token_range: Range<usize>) {
|
||||
// If this is a replacement completion, check that we know how to replace it, e.g. that
|
||||
// the token doesn't contain evil operators like {}.
|
||||
if !c.flags.contains(CompleteFlags::REPLACES_TOKEN) || reader_can_replace(tok, c.flags)
|
||||
{
|
||||
if !c.flags.contains(CompleteFlags::REPLACES_TOKEN) || reader_can_replace(tok, c.flags) {
|
||||
self.completion_insert(&c.completion, token_range.end, c.flags);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user