Skip to content

Commit

Permalink
chafa: Strip output from "tmux show"
Browse files Browse the repository at this point in the history
This prevents setting the passthrough option needlessly.

See #195 (GitHub).
  • Loading branch information
hpjansson committed Mar 29, 2024
1 parent 241b474 commit 5bd0087
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/chafa/chafa.c
Expand Up @@ -1837,7 +1837,10 @@ apply_passthrough_workarounds_tmux (void)

strings = g_strsplit_set (standard_output, " ", -1);
if (strings [0] && strings [1])
{
mode = g_ascii_strdown (strings [1], -1);
g_strstrip (mode);
}
g_strfreev (strings);

g_free (standard_output);
Expand Down

0 comments on commit 5bd0087

Please sign in to comment.