diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-03 20:37:51 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-03 20:37:51 +0800 |
| commit | f7862affd74ac3b129f9e9791a4cd4e1c7e3e6d1 (patch) | |
| tree | fc383c5aab915a752baecca22463693ba386b73d /mingling_core/src/comp.rs | |
| parent | 950a24c03ca49872f19ffff8ab6a8b80d687099a (diff) | |
Diffstat (limited to 'mingling_core/src/comp.rs')
| -rw-r--r-- | mingling_core/src/comp.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mingling_core/src/comp.rs b/mingling_core/src/comp.rs index 2317f06..5f851ca 100644 --- a/mingling_core/src/comp.rs +++ b/mingling_core/src/comp.rs @@ -182,7 +182,11 @@ impl CompletionHelper { trace!("using default completion"); let fallback = P::do_comp(&P::build_entry_fallback(vec![]), ctx); let default = default_completion::<P>(ctx); - fallback.combine(default) + if fallback == Suggest::FileCompletion { + default + } else { + fallback.combine(default) + } } } } |
