diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-01-16 00:01:10 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-01-16 00:01:10 +0000 |
commit | 7b606457320995e2f4790b758a13d26d383ae213 (patch) | |
tree | e57056522b598aee1c15e88ce8607052aa97b7a3 /cmd-display-panes.c | |
parent | c9fcb76651cd6685ad33b845bcd0a21771964d37 (diff) | |
parent | 52847a951802fda7a3ce36cdac77c34914b0ccca (diff) | |
download | rtmux-7b606457320995e2f4790b758a13d26d383ae213.tar.gz rtmux-7b606457320995e2f4790b758a13d26d383ae213.tar.bz2 rtmux-7b606457320995e2f4790b758a13d26d383ae213.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-display-panes.c')
-rw-r--r-- | cmd-display-panes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-display-panes.c b/cmd-display-panes.c index 65813804..e670c1b9 100644 --- a/cmd-display-panes.c +++ b/cmd-display-panes.c @@ -90,7 +90,8 @@ cmd_display_panes_callback(struct client *c, struct window_pane *wp) xasprintf(&expanded, "%%%u", wp->id); cmd = cmd_template_replace(template, expanded, 1); - if (cmd_string_parse(cmd, &cmdlist, NULL, 0, &cause) != 0) { + cmdlist = cmd_string_parse(cmd, NULL, 0, &cause); + if (cmdlist == NULL) { if (cause != NULL) { new_item = cmdq_get_callback(cmd_display_panes_error, cause); |