mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
fixup! Fix memory leak in term_env
This commit is contained in:
parent
22a67885e1
commit
8069939112
1 changed files with 1 additions and 1 deletions
|
@ -549,7 +549,7 @@ static bool initialize_curses_using_fallback(const char *term) {
|
|||
if (term_var.missing_or_empty()) return false;
|
||||
|
||||
auto term_env = wcs2string(term_var->as_string());
|
||||
if (term_env != DEFAULT_TERM1 || term_env != DEFAULT_TERM2) return false;
|
||||
if (term_env == DEFAULT_TERM1 || term_env == DEFAULT_TERM2) return false;
|
||||
|
||||
if (is_interactive_session) debug(1, _(L"Using fallback terminal type '%s'."), term);
|
||||
|
||||
|
|
Loading…
Reference in a new issue