diff options
Diffstat (limited to 'Completion/Core/_main_complete')
-rw-r--r-- | Completion/Core/_main_complete | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete index 69ee24ae2..3c2a61cce 100644 --- a/Completion/Core/_main_complete +++ b/Completion/Core/_main_complete @@ -302,8 +302,10 @@ fi if [[ "$compstate[old_list]" = keep ]]; then ZLS_COLORS="$_saved_colors" -else +elif (( $#_comp_colors )); then ZLS_COLORS="${(j.:.)_comp_colors}" +else + unset ZLS_COLORS fi # Now call the post-functions. |