Am 27.01.2011 um 17:38 schrieb Jean-Marc Lasgouttes:

> Le 27/01/2011 17:12, Stephan Witt a écrit :
>> Am 27.01.2011 um 16:38 schrieb Jean-Marc Lasgouttes:
>> 
>>> In a document with spell-as-you-type enabled, type "LyX@". The spell marker 
>>> will contain the "@" character, whereas normal spell check will select 
>>> "LyX" only.
>>> 
>>> I looked a bit at the code but I do not know where to search.
>> 
>> It's my fault.
>> I don't know if I copied it when refactoring spell checker mismatch marking.
>> Anyway, the patch is attached. I'll check for side-effects...
> 
> It looks reasonable, but why isn't a space after word highlighted too? Is it 
> treated specially?

Yes, it is.
The innermost loop in method RowPainter::paintChars() stops at printable spaces.
After returning and drawing the misspelled marker the space is not painted but 
skipped.

The normal spell checker stops at word boundaries anyway.

So I want to apply the patch.

Stephan

Reply via email to