Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix completion when ksh_arrays is set.
Spotted by Christopher Zimmermann <madroach at zakweb.de>, thanks ! ok ajacoutot@
- Loading branch information
Pierre-Emmanuel Andre
committed
Sep 27, 2011
1 parent
e904830
commit 929471f
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
$OpenBSD: patch-Completion_compinit,v 1.1 2011/09/27 13:30:24 pea Exp $ | ||
--- Completion/compinit.orig Tue Sep 27 14:47:45 2011 | ||
+++ Completion/compinit Tue Sep 27 14:48:34 2011 | ||
@@ -161,7 +161,7 @@ _comp_options=( | ||
# and don't get confused by user's ZERR trap handlers. | ||
|
||
typeset -g _comp_setup='local -A _comp_caller_options; | ||
- _comp_caller_options=(${(kv)options}); | ||
+ _comp_caller_options=(${(kv)options[@]}); | ||
setopt localoptions localtraps ${_comp_options[@]}; | ||
local IFS=$'\'\ \\t\\r\\n\\0\'' | ||
exec </dev/null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters