Clean up reader_write_title to work with wcstring

This commit is contained in:
ridiculousfish
2014-08-02 21:01:40 -07:00
parent 87abcecca6
commit b97a94ccc8
3 changed files with 15 additions and 18 deletions

View File

@@ -3251,7 +3251,7 @@ static int builtin_fg(parser_t &parser, wchar_t **argv)
const wcstring ft = tok_first(j->command_wcstr());
if (! ft.empty())
env_set(L"_", ft.c_str(), ENV_EXPORT);
reader_write_title(j->command_wcstr());
reader_write_title(j->command());
make_first(j);
job_set_flag(j, JOB_FOREGROUND, 1);