Fix new-window -k, GitHub issue 1403.
authornicm <nicm@openbsd.org>
Sun, 15 Jul 2018 06:57:13 +0000 (06:57 +0000)
committernicm <nicm@openbsd.org>
Sun, 15 Jul 2018 06:57:13 +0000 (06:57 +0000)
usr.bin/tmux/cmd-new-window.c

index f4004cd..5ce3e77 100644 (file)
@@ -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 <nicholas.marriott@gmail.com>
@@ -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')) {