From: Jeff Hobbs Date: Thu, 18 Nov 2004 19:18:06 +0000 (+0000) Subject: * tkcon.tcl (::tkcon::ExpandVariable): correct array keyname X-Git-Tag: tkcon-2-5~29 X-Git-Url: https://privyetmir.co.uk/gitweb.cgi?a=commitdiff_plain;h=45931ca49645ae30f93e3453663ac8c67ba26e1f;p=tkcon * tkcon.tcl (::tkcon::ExpandVariable): correct array keyname expansion. [Bug 1004508] (bold) --- diff --git a/ChangeLog b/ChangeLog index aa4865d..bbb5bfa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-17 Jeff Hobbs + + * tkcon.tcl (::tkcon::ExpandVariable): correct array keyname + expansion. [Bug 1004508] (bold) + 2004-11-12 Jeff Hobbs * tkcon.tcl (::tkcon::EvalSocket): pass sock arg. (allaert) diff --git a/tkcon.tcl b/tkcon.tcl index ab2881e..166793f 100755 --- a/tkcon.tcl +++ b/tkcon.tcl @@ -5598,7 +5598,9 @@ proc ::tkcon::ExpandVariable str { set vars $ary\([ExpandBestMatch $match $str] foreach var $match {lappend vars $ary\($var\)} return $vars - } else {set match $ary\($match\)} + } elseif {[llength $match] == 1} { + set match $ary\($match\) + } ## Space transformation avoided for array names. } else { set match [EvalAttached [list info vars $str*]]