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:
Nicholas Marriott
2022-04-18 11:47:14 +01:00
parent e0c982c5ad
commit 58d1a206c6
6 changed files with 66 additions and 29 deletions

2
cfg.c
View File

@ -250,7 +250,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]);
}