mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 00:38:01 +00:00
Paragraph::isLetter(): Fix word selection in ERT. The check had nothing to do with spellchecking. This method is misnamed, it should perhaps be renamed to 'canBePartOfWord()'.
NB: I am not sure this escape character preference is something useful to keep. If some language has some special escape characters beside the single quote one we should support that out of the box and not asking the user to define it or them in the preference dialog. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30210 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5a54d11157
commit
7a4668b25e
@ -2473,7 +2473,6 @@ bool Paragraph::isLetter(pos_type pos) const
|
||||
// We want to pass the ' and escape chars to the spellchecker
|
||||
static docstring const quote = from_utf8(lyxrc.spellchecker_esc_chars + '\'');
|
||||
return (isLetterChar(c) || isDigit(c) || contains(quote, c))
|
||||
&& (!d->inset_owner_ || d->inset_owner_->allowSpellCheck())
|
||||
&& pos != size()
|
||||
&& !isDeleted(pos);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user