From d09274dcd8199dadcb907b0b78a04674807a107f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 21 Sep 2006 16:48:21 +0000 Subject: 22739: arno: different test for theme in prompt -c --- ChangeLog | 3 +++ Functions/Prompts/promptinit | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5934a824d..adf966b03 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-09-21 Peter Stephenson + * 22739: arno: Functions/Prompt/promptinit: change test + for prompt -c to test for theme. + * 22753: Src/prompt.c, Src/utils.c, Src/Zle/complist.c: minor bugs with using characters spotted from warnings on Cygwin. diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit index 0ca4f86bf..37e437699 100644 --- a/Functions/Prompts/promptinit +++ b/Functions/Prompts/promptinit @@ -91,7 +91,7 @@ Use prompt -h for help on specific themes.' ;; esac case "$opt" in - c) if (( $+prompt_theme )); then + c) if [[ -n $prompt_theme ]]; then print -n "Current prompt theme" (( $#prompt_theme > 1 )) && print -n " with parameters" print " is:\n $prompt_theme" -- cgit 1.4.1