Skip to content

Commit

Permalink
git-gui: Paper bag fix bad string length call in spellchecker
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce committed Feb 14, 2008
1 parent 95b002e commit 765239e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spellcheck.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ method _read {} {
# 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} {
Expand Down

0 comments on commit 765239e

Please sign in to comment.