From 5dea246e02f9e7cb55b01c138de3fbe57bb27664 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 3 May 2019 18:59:59 +0000 Subject: Insert after the right element on queue. --- usr.bin/tmux/cmd-queue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin') diff --git a/usr.bin/tmux/cmd-queue.c b/usr.bin/tmux/cmd-queue.c index 3290e4c6292..903a88026d4 100644 --- a/usr.bin/tmux/cmd-queue.c +++ b/usr.bin/tmux/cmd-queue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-queue.c,v 1.64 2019/05/03 15:43:01 nicm Exp $ */ +/* $OpenBSD: cmd-queue.c,v 1.65 2019/05/03 18:59:58 nicm Exp $ */ /* * Copyright (c) 2013 Nicholas Marriott @@ -94,6 +94,7 @@ cmdq_insert_after(struct cmdq_item *after, struct cmdq_item *item) log_debug("%s %s: %s after %s", __func__, cmdq_name(c), item->name, after->name); + after = item; item = next; } while (item != NULL); } -- cgit v1.2.3