[LyX/master] Revert "Do not set language from keyboard in passthru setting"

Jean-Marc Lasgouttes lasgouttes at lyx.org
Wed Oct 21 16:22:38 UTC 2020


commit 2395522aa7b536c1872076c04c2f187c4efaf49d
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Wed Oct 21 18:50:31 2020 +0200

    Revert "Do not set language from keyboard in passthru setting"
    
    This reverts commit d94bd072647fca813df464c6ef14d84445c603ca.
---
 src/Cursor.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index b30ed0f..7197b91 100644
--- a/src/Cursor.cpp
+++ b/src/Cursor.cpp
@@ -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());


More information about the lyx-cvs mailing list