From 13bc514aa6832f82846cb00f13969fd9440c53b4 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 3 Jan 2026 16:30:22 +0100 Subject: [PATCH] __fish_complete_directories: remove use of empty variable Closes #12248 --- share/functions/__fish_complete_directories.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_complete_directories.fish b/share/functions/__fish_complete_directories.fish index fb0b8f95c..abd5d413b 100644 --- a/share/functions/__fish_complete_directories.fish +++ b/share/functions/__fish_complete_directories.fish @@ -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