Am 02.02.2011 um 15:46 schrieb Jean-Marc Lasgouttes:

> Le 02/02/2011 11:26, Stephan Witt a écrit :
>> +            if (!cur.selection()) {
>> +                    // apply to current word
>> +                    selectWordWhenUnderCursor(cur, WHOLE_WORD);
>> +            }
> 
> There is no need to test for selection, selectWordWhenUnderCursor does the 
> right thing already.

Ah, yes.

I copied and simplified the code from LFUN_SPELLING_ADD etc. without reading 
the code in selectWordWhenUnderCursor :(
I'll change it.

Stephan

Reply via email to