]> git.lyx.org Git - features.git/commitdiff
avoid the automatic word selection for language change when at the word boundaries...
authorStephan Witt <switt@lyx.org>
Wed, 9 Mar 2011 14:15:34 +0000 (14:15 +0000)
committerStephan Witt <switt@lyx.org>
Wed, 9 Mar 2011 14:15:34 +0000 (14:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37886 a592a061-630c-0410-9148-cb99ea01b6c8

src/Text3.cpp

index aec29086aff5e5c2f08c6d6ba37de23cfd455226..ee7980410e95c49e62e6d8067406ca8788dac903 100644 (file)
@@ -1890,7 +1890,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                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;