Unnamed repository; edit this file 'description' to name the repository.
Allow symlinks in shell program completions
Co-authored-by: thort <thort@compass-vm>
| -rw-r--r-- | helix-term/src/ui/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index 106bfbfb..004c8836 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -692,7 +692,8 @@ pub mod completers { .flatten() .filter_map(|res| { let entry = res.ok()?; - if entry.metadata().ok()?.is_file() { + let metadata = entry.metadata().ok()?; + if metadata.is_file() || metadata.is_symlink() { entry.file_name().into_string().ok() } else { None |