avoid the automatic word selection for language change when at the word boundaries, this will stop the automatic selection for words with length of one character

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37886 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stephan Witt 2011-03-09 14:15:34 +00:00
parent cf6c0c8192
commit c530a2d1a2

View 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;