From 5f8a0990b2cd540e904359fde88920d87beb3399 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 15 Jul 2018 06:57:13 +0000 Subject: [PATCH] Fix new-window -k, GitHub issue 1403. --- usr.bin/tmux/cmd-new-window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.bin/tmux/cmd-new-window.c b/usr.bin/tmux/cmd-new-window.c index f4004cd9772..5ce3e771a12 100644 --- a/usr.bin/tmux/cmd-new-window.c +++ b/usr.bin/tmux/cmd-new-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-new-window.c,v 1.75 2018/05/24 09:42:49 nicm Exp $ */ +/* $OpenBSD: cmd-new-window.c,v 1.76 2018/07/15 06:57:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -103,7 +103,6 @@ cmd_new_window_exec(struct cmd *self, struct cmdq_item *item) else name = NULL; - wl = NULL; if (idx != -1) wl = winlink_find_by_index(&s->windows, idx); if (wl != NULL && args_has(args, 'k')) { -- 2.20.1