about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_hg6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index dcecc8031..80a7d19c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-24  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* unposted: Completion/Unix/Command/_hg: _hg: Declare $expl as
+	an array
+
 2015-09-24  Christoph Mathys  <eraserix@gmail.com>
 
 	* 36613: Completion/Unix/Command/_hg: _hg: extend completion
diff --git a/Completion/Unix/Command/_hg b/Completion/Unix/Command/_hg
index 2db5c55a5..9dd023653 100644
--- a/Completion/Unix/Command/_hg
+++ b/Completion/Unix/Command/_hg
@@ -163,21 +163,21 @@ _hg_revrange() {
 }
 
 _hg_tags_internal() {
-  local expl
+  local -a expl
   typeset -a hgtags
   hgtags=( ${(f)"$(_hg_cmd tags -q 2>/dev/null)"} )
   _wanted tags expl 'tags' compadd -a - hgtags
 }
 
 _hg_bookmarks_internal() {
-  local expl
+  local -a expl
   typeset -a hgbookmarks
   hgbookmarks=( ${(f)"$(_hg_cmd bookmarks -q 2>/dev/null)"} )
   _wanted bookmarks expl 'bookmarks' compadd -a - hgbookmarks
 }
 
 _hg_branches_internal() {
-  local expl
+  local -a expl
   typeset -a hgbranches
   hgbranches=( ${(f)"$(_hg_cmd branches -q 2>/dev/null)"} )
   _wanted branches expl 'branches' compadd -a - hgbranches