summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@ipost.com>2021-04-19 14:40:44 -0700
committerBart Schaefer <schaefer@ipost.com>2021-04-19 14:40:44 -0700
commitc231a2394f59a691edb3d2daf9d9aefe5fce19da (patch)
treea23823759ca66336b8f251746cc0e96e9c482b04
parent5fdd98552d2cdc7727eb29f75b53da73b39dee4b (diff)
downloadzsh-c231a2394f59a691edb3d2daf9d9aefe5fce19da.tar.gz
zsh-c231a2394f59a691edb3d2daf9d9aefe5fce19da.zip
48617: fix misuse of IGNORE_BRACES when initializing debug_indent
-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