diff options
author | 2019-05-23 13:08:43 +0000 | |
---|---|---|
committer | 2019-05-23 13:08:43 +0000 | |
commit | d8804b0bb7c619a2c3bd6d426b15e2e4acaf5da3 (patch) | |
tree | 7c33647c8a2dc215e85e51691d45f532bf81ffbc /usr.bin/tmux/cmd-queue.c | |
parent | Fix length calculation for pasting UTF-8 characters in the status line, (diff) | |
download | wireguard-openbsd-d8804b0bb7c619a2c3bd6d426b15e2e4acaf5da3.tar.xz wireguard-openbsd-d8804b0bb7c619a2c3bd6d426b15e2e4acaf5da3.zip |
Don't remove group items for group 0 (no group).
Diffstat (limited to 'usr.bin/tmux/cmd-queue.c')
-rw-r--r-- | usr.bin/tmux/cmd-queue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/cmd-queue.c b/usr.bin/tmux/cmd-queue.c index 3da374c8d48..256829cec62 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.68 2019/05/23 11:13:30 nicm Exp $ */ +/* $OpenBSD: cmd-queue.c,v 1.69 2019/05/23 13:08:43 nicm Exp $ */ /* * Copyright (c) 2013 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -181,6 +181,8 @@ cmdq_remove_group(struct cmdq_item *item) { struct cmdq_item *this, *next; + if (item->group == 0) + return; this = TAILQ_NEXT(item, entry); while (this != NULL) { next = TAILQ_NEXT(this, entry); |