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)
commitc8ece8bdfbea565232ac0e16e221d17cb34ab218 (patch)
treeac5aca566d3f4a32668e610f1d2e6cd4ab390af6 /library/history.tcl
parentb4137879133fca1eebdd9ccaf159a36aa2c7eab8 (diff)
downloadtcl-c8ece8bdfbea565232ac0e16e221d17cb34ab218.zip
tcl-c8ece8bdfbea565232ac0e16e221d17cb34ab218.tar.gz
tcl-c8ece8bdfbea565232ac0e16e221d17cb34ab218.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\""