mirror of
https://github.com/tmux/tmux.git
synced 2025-01-05 23:38:48 +00:00
Fix order of insertion in load_cfg.
This commit is contained in:
parent
9f75635596
commit
45ae9a8e35
5
cfg.c
5
cfg.c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user