@matheusbsbs / matheus-bagliano / commits / bb760f0257
Fork 0

git-gui: Shorten Aspell version strings to just Aspell version number

We really only support Aspell, so showing the compatibility line from ispell is of little value to end users. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Feb 21, 2008 at 00:20 UTC bb760f0257d2445126ee5c1c1b0d59fa8e4c9de8
1 file changed +4
lib/spellcheck.tcl
+4
@@ -74,12 +74,16 @@ method _connect {pipe_fd} {
74 }
75 return
76 }
77 +
78 if {{@(#) } ne [string range $s_version 0 4]} {
79 catch {close $pipe_fd}
80 error_popup [strcat [mc "Unrecognized spell checker"] ":\n\n$s_version"]
81 return
82 }
83 set s_version [string range $s_version 5 end]
84 + regexp \
85 + {International Ispell Version .* \(but really (Aspell .*?)\)$} \
86 + $s_version _junk s_version
87
88 puts $pipe_fd ! ; # enable terse mode
89 puts $pipe_fd {$$cr master} ; # fetch the language