diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 39083e5043..ee54ace608 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -2399,7 +2399,9 @@ bool notifyCursorLeavesOrEnters(Cursor const & old, Cursor & cur) void Cursor::setLanguageFromInput() { - if (!lyxrc.respect_os_kbd_language) + if (!lyxrc.respect_os_kbd_language + || !inTexted() + || paragraph().isPassThru()) return; string const & code = theApp()->inputLanguageCode(); Language const * lang = languages.getFromCode(code, buffer()->getLanguages());