summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-queue.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2019-05-03 18:59:58 +0000
committernicm <nicm@openbsd.org>2019-05-03 18:59:58 +0000
commitef3f1b1225b993ccfa21e3eb88dec1b788ce5d02 (patch)
treeced4cc6c494db398a0129a26bda778fa681c1ea5 /usr.bin/tmux/cmd-queue.c
parentDo not store the mouse position we calculate as the start of a drag back (diff)
downloadwireguard-openbsd-ef3f1b1225b993ccfa21e3eb88dec1b788ce5d02.tar.xz
wireguard-openbsd-ef3f1b1225b993ccfa21e3eb88dec1b788ce5d02.zip
Insert after the right element on queue.
Diffstat (limited to 'usr.bin/tmux/cmd-queue.c')
-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);
}