aboutsummaryrefslogtreecommitdiffhomepage
path: root/screen.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-06-02 01:50:22 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-06-02 01:50:22 -0700
commit220e1e8fb5c4f88c8c97e5f07cb77d57d476be32 (patch)
tree0486fdf3ea7bebc32cbcc87aaf37b0389b8f21e7 /screen.cpp
parent464187491f910ab2cb8bb0a1bdc6013f10fcd319 (diff)
Fix for crash when setting tmux pane title
Diffstat (limited to 'screen.cpp')
-rw-r--r--screen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen.cpp b/screen.cpp
index 68f78ad7..9cae7d36 100644
--- a/screen.cpp
+++ b/screen.cpp
@@ -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;