diff options
Diffstat (limited to 'library/history.tcl')
-rw-r--r-- | library/history.tcl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/history.tcl b/library/history.tcl index a1e2679..125c766 100644 --- a/library/history.tcl +++ b/library/history.tcl @@ -2,7 +2,7 @@ # # Implementation of the history command. # -# RCS: @(#) $Id: history.tcl,v 1.10 2009/11/19 11:59:54 dkf Exp $ +# RCS: @(#) $Id: history.tcl,v 1.11 2010/06/14 13:48:25 nijtmans Exp $ # # Copyright (c) 1997 Sun Microsystems, Inc. # @@ -50,7 +50,7 @@ proc ::history {args} { # ensemble unknown handler, as those don't fire when no subcommand is # given at all. - if {[llength $args] == 0} { + if {![llength $args]} { set args info } @@ -230,10 +230,10 @@ proc ::tcl::HistIndex {event} { for {set i [expr {$history(nextid)-1}]} {[info exists history($i)]} \ {incr i -1} { if {[string match $event* $history($i)]} { - return $i; + return $i } if {[string match $event $history($i)]} { - return $i; + return $i } } return -code error "no event matches \"$event\"" |