Add a current_file format for the config file being parsed. Originally

suggested by kn@, also GitHub issue 2638.
This commit is contained in:
nicm
2021-04-07 12:50:12 +00:00
parent 1ac47400d2
commit 71fc9f3ee8
3 changed files with 20 additions and 3 deletions

View File

@ -276,7 +276,7 @@ cmdq_merge_formats(struct cmdq_item *item, struct format_tree *ft)
const struct cmd_entry *entry;
if (item->cmd != NULL) {
entry = cmd_get_entry (item->cmd);
entry = cmd_get_entry(item->cmd);
format_add(ft, "command", "%s", entry->name);
}
if (item->state->formats != NULL)