summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-09-21 16:48:21 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-09-21 16:48:21 +0000
commitd09274dcd8199dadcb907b0b78a04674807a107f (patch)
treea7f68304671f032e32ca7ca18cd89dd57e2ba598
parent78d1939ffd229c8c4ff303bac6d41a08b983e65e (diff)
downloadzsh-d09274dcd8199dadcb907b0b78a04674807a107f.tar.gz
zsh-d09274dcd8199dadcb907b0b78a04674807a107f.tar.xz
zsh-d09274dcd8199dadcb907b0b78a04674807a107f.zip
22739: arno: different test for theme in prompt -c
-rw-r--r--ChangeLog3
-rw-r--r--Functions/Prompts/promptinit2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5934a824d..adf966b03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-09-21  Peter Stephenson  <pws@csr.com>
 
+	* 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 <theme> 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"