fmt!
Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Rust checks / clippy (push) Waiting to run

This commit is contained in:
Fabian Boehm 2024-12-13 21:57:07 +01:00
parent abc1a45ea1
commit 84d8655677

View File

@ -619,9 +619,15 @@ fn init_curses(vars: &EnvStack) {
// We do not warn for xterm-256color at all, we know that one. // We do not warn for xterm-256color at all, we know that one.
if term != Some("xterm-256color".into()) { if term != Some("xterm-256color".into()) {
if let Some(term) = term { if let Some(term) = term {
FLOG!(warning, wgettext_fmt!("Could not set up terminal for $TERM '%ls'", term)); FLOG!(
warning,
wgettext_fmt!("Could not set up terminal for $TERM '%ls'", term)
);
} else { } else {
FLOG!(warning, wgettext!("Could not set up terminal because $TERM is unset.")); FLOG!(
warning,
wgettext!("Could not set up terminal because $TERM is unset.")
);
} }
} }
} }