Add a title line to 'listing r', so the resulting output may be

re-loaded by the 'source' command.
This commit is contained in:
Holger Vogt 2023-09-10 13:44:18 +02:00
parent f2247a3c6f
commit 64307ba907
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ com_listing(wordlist *wl)
} else {
if (type != LS_DECK && type != LS_RUNNABLE)
fprintf(cp_out, "\t%s\n\n", ft_curckt->ci_name);
else if (type == LS_RUNNABLE)
fprintf(cp_out, "* expanded deck of %s\n", ft_curckt->ci_name);
inp_list(cp_out,
expand ? ft_curckt->ci_deck : ft_curckt->ci_origdeck,
ft_curckt->ci_options, type);