diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-05-03 21:21:01 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2019-05-03 21:21:01 +0000 |
commit | 4f2d77ce3058b3f2a6e8527eb8896e4b7047af23 (patch) | |
tree | 57e67820e7b3237ba9ec145948f1e338ecf3f57b /usr.bin/tmux/cfg.c | |
parent | 56ea0a7498e53a198c5dd1916a62bafc3df0e2a8 (diff) |
Fix order of insertion in load_cfg.
Diffstat (limited to 'usr.bin/tmux/cfg.c')
-rw-r--r-- | usr.bin/tmux/cfg.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/tmux/cfg.c b/usr.bin/tmux/cfg.c index b4d4f89f6d8..0ba4ae4e118 100644 --- a/usr.bin/tmux/cfg.c +++ b/usr.bin/tmux/cfg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cfg.c,v 1.68 2019/04/18 11:07:28 nicm Exp $ */ +/* $OpenBSD: cfg.c,v 1.69 2019/05/03 21:21:00 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -302,9 +302,10 @@ load_cfg(const char *path, struct client *c, struct cmdq_item *item, int quiet) free(buf); new_item = cmdq_get_command(cmdlist, NULL, NULL, 0); - if (item != NULL) + if (item != NULL) { cmdq_insert_after(item, new_item); - else + item = new_item; + } else cmdq_append(c, new_item); cmd_list_free(cmdlist); |