mirror of https://github.com/helix-editor/helix
Allow symlinks in shell program completions
Co-authored-by: thort <thort@compass-vm>pull/5393/head
parent
ba04f53830
commit
532f241287
|
@ -692,7 +692,8 @@ pub mod completers {
|
||||||
.flatten()
|
.flatten()
|
||||||
.filter_map(|res| {
|
.filter_map(|res| {
|
||||||
let entry = res.ok()?;
|
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()
|
entry.file_name().into_string().ok()
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
Loading…
Reference in New Issue