aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarlon Richert <marlon.richert@gmail.com>2021-08-10 22:02:11 +0300
committerOliver Kiddle <opk@zsh.org>2021-08-27 09:47:32 +0200
commit1a78e46564d7e480affb7f832b33605c13a01e55 (patch)
tree798d2ff411c8bf29d707b30466e7ef76fe3aad07
parent51eaf66bea68da346167e08c9ff8b4ac60c3f7da (diff)
downloadzsh-1a78e46564d7e480affb7f832b33605c13a01e55.tar.gz
zsh-1a78e46564d7e480affb7f832b33605c13a01e55.tar.xz
zsh-1a78e46564d7e480affb7f832b33605c13a01e55.zip
49272: Set $COLUMNS in _call_program to ensure cached command output is sufficiently wide
-rw-r--r--ChangeLog4
-rw-r--r--Completion/Base/Utility/_call_program1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 71921f561..458446401 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2021-08-27 Oliver Kiddle <opk@zsh.org>
+ * Marlon: 49272: Completion/Base/Utility/_call_program:
+ Set $COLUMNS in _call_program to ensure cached command
+ output is sufficiently wide
+
* unposted (based on Marlon: 49273):
Completion/Zsh/Command/_typeset: add -x to local completion
diff --git a/Completion/Base/Utility/_call_program b/Completion/Base/Utility/_call_program
index 73f3ef6d2..55712b04b 100644
--- a/Completion/Base/Utility/_call_program
+++ b/Completion/Base/Utility/_call_program
@@ -1,5 +1,6 @@
#autoload +X
+local -xi COLUMNS=999
local curcontext="${curcontext}" tmp err_fd=-1 clocale='_comp_locale;'
local -a prefix