Add a way for lines added to copy mode to be passed through the parser

to handle escape sequences and use it for run-shell, GitHub issue 3156.
This commit is contained in:
nicm
2022-05-30 13:00:18 +00:00
parent 20b0b38cf4
commit cd89000c1d
6 changed files with 103 additions and 36 deletions

2
cfg.c
View File

@ -251,7 +251,7 @@ cfg_show_causes(struct session *s)
if (wme == NULL || wme->mode != &window_view_mode)
window_pane_set_mode(wp, NULL, &window_view_mode, NULL, NULL);
for (i = 0; i < cfg_ncauses; i++) {
window_copy_add(wp, "%s", cfg_causes[i]);
window_copy_add(wp, 0, "%s", cfg_causes[i]);
free(cfg_causes[i]);
}