summaryrefslogtreecommitdiffstats
path: root/cmd-rename-window.c
diff options
context:
space:
mode:
authornicm <nicm>2018-03-23 19:17:03 +0000
committernicm <nicm>2018-03-23 19:17:03 +0000
commit194e9f611bf275ec36e50c82cca129cde7e9eb18 (patch)
tree1deac7cecc15c014dcc45e35f491c8562f6930b1 /cmd-rename-window.c
parent26792b90357213b98a990b97fd6dc4333a00adcb (diff)
Fix a regression: do not warn about no client in rename-window.
Diffstat (limited to 'cmd-rename-window.c')
-rw-r--r--cmd-rename-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-rename-window.c b/cmd-rename-window.c
index 3393fb86..4d2ebb75 100644
--- a/cmd-rename-window.c
+++ b/cmd-rename-window.c
@@ -46,7 +46,7 @@ static enum cmd_retval
cmd_rename_window_exec(struct cmd *self, struct cmdq_item *item)
{
struct args *args = self->args;
- struct client *c = cmd_find_client(item, NULL, 0);
+ struct client *c = cmd_find_client(item, NULL, 1);
struct session *s = item->target.s;
struct winlink *wl = item->target.wl;
char *newname;