summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95b002e)
raw | patch | inline | side by side (parent: 95b002e)
author | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 14 Feb 2008 06:05:04 +0000 (01:05 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Thu, 14 Feb 2008 06:05:04 +0000 (01:05 -0500) |
We don't want the list length, we need the string length.
Found due to a bad " character discovered in the text and
Tcl throwing 'unmatched open quote in list'.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Found due to a bad " character discovered in the text and
Tcl throwing 'unmatched open quote in list'.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
lib/spellcheck.tcl | patch | blob | history |
diff --git a/lib/spellcheck.tcl b/lib/spellcheck.tcl
index 01c2c4f0d1a51d29cc554b9209d7dbcd0af90515..7f018e4009dd17941d93bc9146fee7e3a2e07f0e 100644 (file)
--- a/lib/spellcheck.tcl
+++ b/lib/spellcheck.tcl
# try to round out the word.
#
while {$curr ne $orig
- && [string equal -length [llength $curr] $curr $orig]} {
+ && [string equal -length [string length $curr] $curr $orig]} {
set n_loc [$w_text index "$e_loc +1c"]
set n_curr [$w_text get $b_loc $n_loc]
if {$n_curr eq $curr} {