mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
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:
parent
005dc32e54
commit
97c9404b71
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user