Browse Source

git-gui: Paper bag fix bad string length call in spellchecker

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>
maint
Shawn O. Pearce 17 years ago
parent
commit
765239e9d2
  1. 2
      lib/spellcheck.tcl

2
lib/spellcheck.tcl

@ -308,7 +308,7 @@ method _read {} {
# try to round out the word. # try to round out the word.
# #
while {$curr ne $orig 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_loc [$w_text index "$e_loc +1c"]
set n_curr [$w_text get $b_loc $n_loc] set n_curr [$w_text get $b_loc $n_loc]
if {$n_curr eq $curr} { if {$n_curr eq $curr} {

Loading…
Cancel
Save