mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 02:02:44 +08:00
Modified reader.cpp to use env_get_string()
This commit is contained in:
parent
9cc2217a26
commit
3bb4d0b276
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user