mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-03 23:11:14 -03:00
Modified env.cpp to use env_get_string()
This commit is contained in:
@@ -204,8 +204,8 @@ static int calc_prompt_width( const wchar_t *prompt )
|
||||
{
|
||||
if( prompt[j+1] == L'k' )
|
||||
{
|
||||
wchar_t *term_name = env_get( L"TERM" );
|
||||
if( term_name && wcsstr( term_name, L"screen" ) == term_name )
|
||||
wcstring term_name = env_get_string( L"TERM" );
|
||||
if( !term_name.empty() && wcsstr( term_name.c_str(), L"screen" ) == term_name )
|
||||
{
|
||||
const wchar_t *end;
|
||||
j+=2;
|
||||
|
||||
Reference in New Issue
Block a user