summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-05-03 18:59:59 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-05-03 18:59:59 +0000
commit5dea246e02f9e7cb55b01c138de3fbe57bb27664 (patch)
tree8fc4cea6559fb9d6c12a0344b681c9add9b03da7 /usr.bin
parentd2a3ab563d59b2a0b4fc564796713e75c18978ba (diff)
Insert after the right element on queue.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/cmd-queue.c3
1 files changed, 2 insertions, 1 deletions
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 <nicholas.marriott@gmail.com>
@@ -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);
}