Skip to content

Commit

Permalink
git-gui: Shorten Aspell version strings to just Aspell version number
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce committed Feb 21, 2008
1 parent 827743b commit bb760f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/spellcheck.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,16 @@ method _connect {pipe_fd} {
}
return
}

if {{@(#) } ne [string range $s_version 0 4]} {
catch {close $pipe_fd}
error_popup [strcat [mc "Unrecognized spell checker"] ":\n\n$s_version"]
return
}
set s_version [string range $s_version 5 end]
regexp \
{International Ispell Version .* \(but really (Aspell .*?)\)$} \
$s_version _junk s_version

puts $pipe_fd ! ; # enable terse mode
puts $pipe_fd {$$cr master} ; # fetch the language
Expand Down

0 comments on commit bb760f0

Please sign in to comment.