summaryrefslogtreecommitdiffstats
path: root/library/history.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'library/history.tcl')
-rw-r--r--library/history.tcl10
1 files changed, 4 insertions, 6 deletions
diff --git a/library/history.tcl b/library/history.tcl
index a1e2679..51d2404 100644
--- a/library/history.tcl
+++ b/library/history.tcl
@@ -2,8 +2,6 @@
#
# Implementation of the history command.
#
-# RCS: @(#) $Id: history.tcl,v 1.10 2009/11/19 11:59:54 dkf Exp $
-#
# Copyright (c) 1997 Sun Microsystems, Inc.
#
# See the file "license.terms" for information on usage and redistribution of
@@ -50,12 +48,12 @@ 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
}
# Tricky stuff needed to make stack and errors come out right!
- tailcall apply {args {tailcall history {*}$args} ::tcl} {*}$args
+ tailcall apply {arglist {tailcall history {*}$arglist} ::tcl} $args
}
# tcl::HistAdd --
@@ -230,10 +228,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\""