aboutsummaryrefslogtreecommitdiffhomepage
path: root/screen.cpp
diff options
context:
space:
mode:
authorGravatar Peter Ammon <corydoras@ridiculousfish.com>2012-01-14 02:42:17 -0800
committerGravatar Peter Ammon <corydoras@ridiculousfish.com>2012-01-14 02:42:17 -0800
commita359f45df219e6a3845870ca69b4116083d787f7 (patch)
tree08454add430170b4113659caf084f9a8801f77c3 /screen.cpp
parente8b6d48ad038089e37730990212676e50a8d2352 (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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen.cpp b/screen.cpp
index f4bc39bb..eb8bcc82 100644
--- a/screen.cpp
+++ b/screen.cpp
@@ -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;