diff options
author | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-14 02:42:17 -0800 |
---|---|---|
committer | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-14 02:42:17 -0800 |
commit | a359f45df219e6a3845870ca69b4116083d787f7 (patch) | |
tree | 08454add430170b4113659caf084f9a8801f77c3 /screen.cpp | |
parent | e8b6d48ad038089e37730990212676e50a8d2352 (diff) |
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
Diffstat (limited to 'screen.cpp')
-rw-r--r-- | screen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |