Modified reader.cpp to use env_get_string()

This commit is contained in:
Siteshwar Vashisht 2012-01-12 22:32:50 +05:30
parent 9cc2217a26
commit 3bb4d0b276

View File

@ -606,7 +606,8 @@ int reader_interrupted()
void reader_write_title()
{
const wchar_t *title;
wchar_t *term = env_get( L"TERM" );
const wcstring term_str = env_get_string( L"TERM" );
const wchar_t *term = term_str.empty()?NULL:term_str.c_str();
/*
This is a pretty lame heuristic for detecting terminals that do