mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 10:51:15 -03:00
Redesign new environment variables to use env_var_t instead of wcstring
Migrate uses of empty() to missing() to distinguish between empty variable and unset variable
This commit is contained in:
@@ -204,8 +204,8 @@ static int calc_prompt_width( const wchar_t *prompt )
|
||||
{
|
||||
if( prompt[j+1] == L'k' )
|
||||
{
|
||||
wcstring term_name = env_get_string( L"TERM" );
|
||||
if( !term_name.empty() && wcsstr( term_name.c_str(), L"screen" ) == term_name )
|
||||
const env_var_t term_name = env_get_string( L"TERM" );
|
||||
if( !term_name.missing() && wcsstr( term_name.c_str(), L"screen" ) == term_name )
|
||||
{
|
||||
const wchar_t *end;
|
||||
j+=2;
|
||||
|
||||
Reference in New Issue
Block a user