diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-06-02 01:50:22 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-06-02 01:50:22 -0700 |
commit | 220e1e8fb5c4f88c8c97e5f07cb77d57d476be32 (patch) | |
tree | 0486fdf3ea7bebc32cbcc87aaf37b0389b8f21e7 /screen.cpp | |
parent | 464187491f910ab2cb8bb0a1bdc6013f10fcd319 (diff) |
Fix for crash when setting tmux pane title
Diffstat (limited to 'screen.cpp')
-rw-r--r-- | screen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -289,7 +289,7 @@ static prompt_layout_t calc_prompt_layout(const wchar_t *prompt) if (prompt[j+1] == L'k') { const env_var_t term_name = env_get_string(L"TERM"); - if (!term_name.missing() && wcsstr(term_name.c_str(), L"screen") == term_name) + if (!term_name.missing() && string_prefixes_string(L"screen", term_name)) { const wchar_t *end; j+=2; |