]> git.lyx.org Git - features.git/commitdiff
Revert "Do not set language from keyboard in passthru setting"
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 21 Oct 2020 16:50:31 +0000 (18:50 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 21 Oct 2020 16:50:31 +0000 (18:50 +0200)
This reverts commit d94bd072647fca813df464c6ef14d84445c603ca.

src/Cursor.cpp

index b30ed0f7942628482790e4be4837ebfc01a7be8b..7197b91cf26951477c8515f69915c3bc686dc0d5 100644 (file)
@@ -2399,8 +2399,7 @@ bool notifyCursorLeavesOrEnters(Cursor const & old, Cursor & cur)
 
 void Cursor::setLanguageFromInput()
 {
-       if (!lyxrc.respect_os_kbd_language
-           || (inTextEd() && paragraph().isPassthru())
+       if (!lyxrc.respect_os_kbd_language)
                return;
        string const & code = theApp()->inputLanguageCode();
        Language const * lang = languages.getFromCode(code, buffer()->getLanguages());