summaryrefslogtreecommitdiffstats
path: root/library/history.tcl
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-06-14 13:48:25 (GMT)
committernijtmans <nijtmans>2010-06-14 13:48:25 (GMT)
commit0e72c9c6656401b476b0cf11c125d5bff87f8b93 (patch)
treeac5aca566d3f4a32668e610f1d2e6cd4ab390af6 /library/history.tcl
parente16e1505cda7b4046f3080614042121bf8ce222f (diff)
downloadtcl-0e72c9c6656401b476b0cf11c125d5bff87f8b93.zip
tcl-0e72c9c6656401b476b0cf11c125d5bff87f8b93.tar.gz
tcl-0e72c9c6656401b476b0cf11c125d5bff87f8b93.tar.bz2
Spacing and style fixes
Diffstat (limited to 'library/history.tcl')
-rw-r--r--library/history.tcl8
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\""