mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
fixup! Redo spell checking after changing options
This commit is contained in:
@@ -282,7 +282,7 @@ namespace ng
|
||||
_spelling.reset(flag ? new spelling_t : NULL);
|
||||
add_meta_data(_spelling.get());
|
||||
|
||||
if(flag)
|
||||
if(flag && _spelling)
|
||||
_spelling->recheck(this, 0, size());
|
||||
}
|
||||
|
||||
@@ -291,7 +291,8 @@ namespace ng
|
||||
if(lang != _spelling_language)
|
||||
{
|
||||
_spelling_language = lang;
|
||||
_spelling->recheck(this, 0, size());
|
||||
if(_spelling)
|
||||
_spelling->recheck(this, 0, size());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user