mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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:
parent
cf6c0c8192
commit
c530a2d1a2
@ -1890,7 +1890,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
Language const * lang = languages.getLanguage(to_utf8(cmd.argument()));
|
Language const * lang = languages.getLanguage(to_utf8(cmd.argument()));
|
||||||
if (!lang)
|
if (!lang)
|
||||||
break;
|
break;
|
||||||
selectWordWhenUnderCursor(cur, WHOLE_WORD);
|
selectWordWhenUnderCursor(cur, WHOLE_WORD_STRICT);
|
||||||
Font font(ignore_font, lang);
|
Font font(ignore_font, lang);
|
||||||
toggleAndShow(cur, this, font);
|
toggleAndShow(cur, this, font);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user