Skip to content

Commit 765239e

Browse files
committed
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>
1 parent 95b002e commit 765239e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/spellcheck.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ method _read {} {
308308
# try to round out the word.
309309
#
310310
while {$curr ne $orig
311-
&& [string equal -length [llength $curr] $curr $orig]} {
311+
&& [string equal -length [string length $curr] $curr $orig]} {
312312
set n_loc [$w_text index "$e_loc +1c"]
313313
set n_curr [$w_text get $b_loc $n_loc]
314314
if {$n_curr eq $curr} {

0 commit comments

Comments
 (0)