about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2012-03-17 21:51:19 +0100
committerMikael Magnusson <mikachu@gmail.com>2015-08-28 09:37:37 +0200
commit095dd71cc01cb62514138841aad07c9ddb5465f6 (patch)
treea7fc5ba282898d6b8e45cf6190e71078e2a642d3
parent9ca9a092deed209a2591c38c8fe1fe6c0debff7d (diff)
downloadzsh-095dd71cc01cb62514138841aad07c9ddb5465f6.tar.gz
zsh-095dd71cc01cb62514138841aad07c9ddb5465f6.tar.xz
zsh-095dd71cc01cb62514138841aad07c9ddb5465f6.zip
36314: Avoid using short_loops syntax in distributed files
-rw-r--r--ChangeLog3
-rw-r--r--Functions/Prompts/prompt_bart_setup4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 46c78e61e..bc968e472 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
 
 	* 36302: Src/Modules/attr.c: Fix compilation with libcap 2.24
 
+	* 36314: Functions/Prompts/prompt_bart_setup: Avoid using
+	short_loops syntax in distributed files
+
 2015-08-27  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* unposted: Completion/Unix/Command/_subversion: _subversion:
diff --git a/Functions/Prompts/prompt_bart_setup b/Functions/Prompts/prompt_bart_setup
index 45fcffed4..22c0c0340 100644
--- a/Functions/Prompts/prompt_bart_setup
+++ b/Functions/Prompts/prompt_bart_setup
@@ -178,7 +178,7 @@ prompt_bart_setup () {
     typeset -gA fg
 
     # A few extra niceties ...
-    repeat 1 case "$1:l" in
+    repeat 1; do case "$1:l" in
       (off|disable)
 	add-zsh-hook -D precmd "prompt_*_precmd"
 	add-zsh-hook -D preexec "prompt_*_preexec"
@@ -201,7 +201,7 @@ prompt_bart_setup () {
 	fg[%D]="%F{${4:-default}}"
 	fg[%@]="%F{${1:-red}}"
 	;;
-    esac
+    esac; done
 
     prompt_bart_ps1