Am 08.03.2011 um 23:09 schrieb Jean-Marc Lasgouttes:

> Le 08/03/2011 21:54, Stephan Witt a écrit :
>> The attached patch changes this to restore the old behavior when cursor is 
>> at the word end.
>> Ok to apply?
> 
> You can simply use WHOLE_WORD_STRICT instead of WHOLE_WORD to get this effect.

Ah, ok - I didn't thought of that. But it's not exactly the same.
When in front of a word the selection is not done too. That raises the
question if it's better or not to use WHOLE_WORD_STRICT...
When entering hebrew text is the word end at from() or at the to() pos?

Stephan

PS. Ronen, if you want to try it - the patch is attached.

/Users/Shared/LyX ~/cvs/lyx /Users/Shared/LyX/lyx-build/LyX-2.0.0svn.build
Index: src/Text3.cpp
===================================================================
--- src/Text3.cpp       (Revision 37885)
+++ src/Text3.cpp       (Arbeitskopie)
@@ -1890,7 +1890,7 @@
                Language const * lang = 
languages.getLanguage(to_utf8(cmd.argument()));
                if (!lang)
                        break;
-               selectWordWhenUnderCursor(cur, WHOLE_WORD);
+               selectWordWhenUnderCursor(cur, WHOLE_WORD_STRICT);
                Font font(ignore_font, lang);
                toggleAndShow(cur, this, font);
                break;

Reply via email to