Commit ac9a9962 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

shortcut spell checking if no dictionaries were loaded


Change-Id: I2657f34947790eb5ed71f160becbb01399147793
Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
parent 8b768d84
No related merge requests found
Showing with 2 additions and 0 deletions
......@@ -133,6 +133,8 @@ sub complain_spelling()
# Given a line of text, searches for likely spelling errors.
sub check_spelling()
{
return if (!%MISTAKES_BASE);
my %seen;
my (@words) = split(/\b/);
foreach my $word (@words) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment