mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
apply change of languange to the word under cursor if there is no selection
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37415 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
e3a8a6342e
commit
83c06abbc0
@ -1889,6 +1889,10 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
||||
Language const * lang = languages.getLanguage(to_utf8(cmd.argument()));
|
||||
if (!lang)
|
||||
break;
|
||||
if (!cur.selection()) {
|
||||
// apply to current word
|
||||
selectWordWhenUnderCursor(cur, WHOLE_WORD);
|
||||
}
|
||||
Font font(ignore_font, lang);
|
||||
toggleAndShow(cur, this, font);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user