about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Base/Widget/_complete_debug6
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 62595d85a..6364ed067 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2021-04-19  Bart Schaefer  <schaefer@zsh.org>
 
+	* 48617: Completion/Base/Widget/_complete_debug: fix misuse of
+	IGNORE_BRACES when initializing debug_indent
+
 	* 47489: Functions/Misc/colors: rename standout as italic
 
 2021-04-19  Oliver Kiddle  <opk@zsh.org>
diff --git a/Completion/Base/Widget/_complete_debug b/Completion/Base/Widget/_complete_debug
index 85a0f372a..94fd4accd 100644
--- a/Completion/Base/Widget/_complete_debug
+++ b/Completion/Base/Widget/_complete_debug
@@ -14,7 +14,11 @@ integer debug_fd=-1
     exec {debug_fd}>&2 2>| $tmp
   fi
 
-  local -a debug_indent; debug_indent=( '%'{3..20}'(e. .)' )
+  local -a debug_indent
+  () {
+    setopt localoptions no_ignorebraces
+    debug_indent=( '%'{3..20}'(e. .)' )
+  }
   local PROMPT4 PS4="${(j::)debug_indent}+%N:%i> "
   setopt xtrace
   : $ZSH_NAME $ZSH_VERSION