language reset should reset to the buffer language

not reset_language, which links to default_language, which is always
English.
This commit is contained in:
Juergen Spitzmueller 2022-12-18 16:35:07 +01:00
parent 005dc32e54
commit 97c9404b71

View File

@ -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.