diff options
author | 2012-01-14 11:59:48 +0530 | |
---|---|---|
committer | 2012-01-14 11:59:48 +0530 | |
commit | 3ba6e9db5db70be7599f9c48a921053d4985b220 (patch) | |
tree | 546f81dbf37496f2bad85d91369047dc599a3a1a /reader.cpp | |
parent | c18d177b8c666338f1fdc36397f490838cefb036 (diff) | |
parent | 610246c48f2834180eca90628c385350574b8c2c (diff) |
Merge branch 'Use_env_get_string' into CPlusPlus
Conflicts:
function.cpp
Diffstat (limited to 'reader.cpp')
-rw-r--r-- | reader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |