fix presets

This commit is contained in:
Huw Percival 2022-02-22 16:36:35 +00:00
parent 3fb84ee9cc
commit b34650ea31
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ _cmake_presets() {
# TODO: Problems with quotes need eval # TODO: Problems with quotes need eval
# would need a way to exec the array # would need a way to exec the array
local list_presets; list_presets=(${(f)"$(eval "${invoke[@]} 2> /dev/null" | sed -n 's,^[[:space:]]*"\([^"]*\)"[[:space:]]*-[[:space:]]*\(.*\),\1:\2,p' )"}) local list_presets; list_presets=(${(f)"$(eval "${invoke[@]} 2> /dev/null" | grep -Po '(?<=\").*(?=")' )"})
_describe 'presets' list_presets _describe 'presets' list_presets
} }