summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0aea284)
raw | patch | inline | side by side (parent: 0aea284)
author | Johannes Sixt <johannes.sixt@telecom.at> | |
Tue, 30 Sep 2008 06:39:29 +0000 (08:39 +0200) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 30 Sep 2008 19:59:18 +0000 (12:59 -0700) |
When git gui processes a reply from aspell it explicitly ignores an empty
line. The Windows version of aspell, however, terminates lines with CRLF,
but TCL's 'gets' does not remove CR, hence, a "visibly" empty line was not
actually recognized as empty. With this change we explicitly trim off
whitespace before the line is further processed.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
line. The Windows version of aspell, however, terminates lines with CRLF,
but TCL's 'gets' does not remove CR, hence, a "visibly" empty line was not
actually recognized as empty. With this change we explicitly trim off
whitespace before the line is further processed.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
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 a479b2f2857751d4d573c7bfe00f9e671d437aed..e6120303e940ee6c849bf706415c1b450e68b57f 100644 (file)
--- a/lib/spellcheck.tcl
+++ b/lib/spellcheck.tcl
method _read {} {
while {[gets $s_fd line] >= 0} {
set lineno [lindex $s_pending 0 0]
+ set line [string trim $line]
if {$s_clear} {
$w_text tag remove misspelled "$lineno.0" "$lineno.end"