summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-08-22 13:00:29 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-08-22 13:00:29 +0000
commit408a97e05c887dede75eea612b3256035efb76ec (patch)
tree500b1b68ef6feb3a3714c0c53e3240cbb267771b /usr.bin/tmux
parent6ed6eef749ba1abcb4b157d915f489384e879e15 (diff)
Insert alias in the right place, GitHub issue 2842.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/cmd-parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-parse.y b/usr.bin/tmux/cmd-parse.y
index 37d3eba9f00..d5c3883ac25 100644
--- a/usr.bin/tmux/cmd-parse.y
+++ b/usr.bin/tmux/cmd-parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-parse.y,v 1.41 2021/08/21 20:46:43 nicm Exp $ */
+/* $OpenBSD: cmd-parse.y,v 1.42 2021/08/22 13:00:28 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -772,7 +772,7 @@ cmd_parse_expand_alias(struct cmd_parse_command *cmd,
TAILQ_REMOVE(&cmd->arguments, first, entry);
cmd_parse_free_argument(first);
- after = TAILQ_NEXT(TAILQ_FIRST(&last->arguments), entry);
+ after = TAILQ_FIRST(&last->arguments);
TAILQ_FOREACH_SAFE(arg, &cmd->arguments, entry, arg1) {
TAILQ_REMOVE(&cmd->arguments, arg, entry);
if (after == NULL)