Fix __fish_complete_command with multiline tokens

This commit is contained in:
Johannes Altmanninger 2024-04-08 22:46:50 +02:00
parent f61ef2c63d
commit 8949c44574

View File

@ -1,5 +1,5 @@
function __fish_complete_command --description 'Complete using all available commands' function __fish_complete_command --description 'Complete using all available commands'
set -l ctoken (commandline -ct) set -l ctoken "$(commandline -ct)"
switch $ctoken switch $ctoken
case '*=*' case '*=*'
set ctoken (string split "=" -- $ctoken) set ctoken (string split "=" -- $ctoken)