commit 97c9404b7181f3713a2dcbdb57121af482a2d34c
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Sun Dec 18 16:35:07 2022 +0100

    language reset should reset to the buffer language
    
    not reset_language, which links to default_language, which is always
    English.
---
 src/Text3.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Text3.cpp b/src/Text3.cpp
index d52ee58..148b1d4 100644
--- a/src/Text3.cpp
+++ b/src/Text3.cpp
@@ -2511,7 +2511,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
                string const lang_arg = cmd.getArg(0);
                bool const reset = (lang_arg.empty() || lang_arg == "reset");
                Language const * lang =
-                       reset ? reset_language
+                       reset ? cur.bv().buffer().params().language
                              : languages.getLanguage(lang_arg);
                // we allow reset_language, which is 0, but only if it
                // was requested via empty or "reset" arg.
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to