Cleaned up lots of typecasts, simplified some string handling

This commit is contained in:
ridiculousfish
2012-08-04 15:11:43 -07:00
parent 5880cd88c8
commit c67702a498
19 changed files with 54 additions and 116 deletions

View File

@@ -1083,15 +1083,15 @@ env_var_t env_get_string( const wcstring &key )
}
else if( key == L"COLUMNS" )
{
return to_string((long)common_get_width());
return to_string(common_get_width());
}
else if( key == L"LINES" )
{
return to_string((long)common_get_width());
return to_string(common_get_width());
}
else if( key == L"status" )
{
return to_string((long)proc_get_last_status());
return to_string(proc_get_last_status());
}
else if( key == L"umask" )
{