__fish_complete_directories: remove use of empty variable

Closes #12248
This commit is contained in:
Johannes Altmanninger
2026-01-03 16:30:22 +01:00
parent 1c3403825c
commit 13bc514aa6

View File

@@ -14,7 +14,7 @@ function __fish_complete_directories -d "Complete directory prefixes" --argument
# If we have a --name=val option, we need to remove it,
# or the complete -C below would keep it, and then whatever complete
# called us would add it again (assuming it's in the current token)
set comp (commandline -ct | string replace -r -- '^-[^=]*=' '' $comp)
set comp (commandline -ct | string replace -r -- '^-[^=]*=' '')
end
# HACK: We call into the file completions by using an empty command