From 8949c445741347fd32f93a2f65fb5af9fffd4dc1 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 8 Apr 2024 22:46:50 +0200 Subject: [PATCH] Fix __fish_complete_command with multiline tokens --- share/functions/__fish_complete_command.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_complete_command.fish b/share/functions/__fish_complete_command.fish index 875d72d23..5f546dc1f 100644 --- a/share/functions/__fish_complete_command.fish +++ b/share/functions/__fish_complete_command.fish @@ -1,5 +1,5 @@ function __fish_complete_command --description 'Complete using all available commands' - set -l ctoken (commandline -ct) + set -l ctoken "$(commandline -ct)" switch $ctoken case '*=*' set ctoken (string split "=" -- $ctoken)