summaryrefslogtreecommitdiffstats
path: root/library/console.tcl
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-01-25 18:22:04 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-01-25 18:22:04 (GMT)
commit339966aea87195faf678c05a06895a0a2f9c65af (patch)
tree80bb0c008e169df663722d227f5f24bc18665bac /library/console.tcl
parentf59975d6eb39f7419c93e45392bab264f83ac352 (diff)
downloadtk-339966aea87195faf678c05a06895a0a2f9c65af.zip
tk-339966aea87195faf678c05a06895a0a2f9c65af.tar.gz
tk-339966aea87195faf678c05a06895a0a2f9c65af.tar.bz2
* library/bgerror.tcl: Updates to use Tcl 8.4 features. [Patch 1237759] * library/choosedir.tcl:
* library/comdlg.tcl: * library/console.tcl: * library/dialog.tcl: * library/focus.tcl: * library/msgbox.tcl: * library/palette.tcl: * library/tk.tcl: * library/tkfbox.tcl: * library/xmfbox.tcl:
Diffstat (limited to 'library/console.tcl')
-rw-r--r--library/console.tcl10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/console.tcl b/library/console.tcl
index 8035031..5ff9772 100644
--- a/library/console.tcl
+++ b/library/console.tcl
@@ -4,7 +4,7 @@
# can be used by non-unix systems that do not have built-in support
# for shells.
#
-# RCS: @(#) $Id: console.tcl,v 1.30 2005/11/30 01:24:48 hobbs Exp $
+# RCS: @(#) $Id: console.tcl,v 1.31 2006/01/25 18:22:04 dgp Exp $
#
# Copyright (c) 1995-1997 Sun Microsystems, Inc.
# Copyright (c) 1998-2000 Ajuba Solutions.
@@ -542,7 +542,7 @@ proc ::tk::ConsoleBind {w} {
}
bind PostConsole <KeyPress> {
- if {"%A" != ""} {
+ if {"%A" ne ""} {
::tk::console::TagProc %W
}
break
@@ -635,7 +635,7 @@ proc ::tk::console::TagProc w {
}
set exp "\[^\\\\\]\[\[ \t\n\r\;{}\"\$\]"
set i [$w search -backwards -regexp $exp insert-1c promptEnd-1c]
- if {$i == ""} {
+ if {$i eq ""} {
set i promptEnd
} else {
append i +2c
@@ -805,7 +805,7 @@ proc ::tk::console::ConstrainBuffer {w size} {
proc ::tk::console::Expand {w {type ""}} {
set exp "\[^\\\\\]\[\[ \t\n\r\\\{\"\\\\\$\]"
set tmp [$w search -backwards -regexp $exp insert-1c promptEnd-1c]
- if {$tmp == ""} {
+ if {$tmp eq ""} {
set tmp promptEnd
} else {
append tmp +2c
@@ -827,7 +827,7 @@ proc ::tk::console::Expand {w {type ""}} {
default {
set res {}
foreach t {Pathname Procname Variable} {
- if {![catch {Expand$t $str} res] && ($res != "")} {
+ if {![catch {Expand$t $str} res] && ($res ne "")} {
break
}
}