[LyX/master] language reset should reset to the buffer language
Juergen Spitzmueller
spitz at lyx.org
Sun Dec 18 14:40:40 UTC 2022
commit 97c9404b7181f3713a2dcbdb57121af482a2d34c
Author: Juergen Spitzmueller <spitz at 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.
More information about the lyx-cvs
mailing list