From ae2c5ad76852d6d2e2463e45b13fc8c15b66e4b7 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sat, 13 May 2017 08:16:11 +0100 Subject: [PATCH] Reset updated flag when restarting job so new output is detected, reported by Gregory Pakosz in GitHub issue 922. --- CHANGES | 5 ++++- format.c | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index a3cf960a..4c84c923 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ CHANGES FROM 2.4 to 2.5 09 May 2017 +* Reset updated flag when restarting #() command so that new output is properly + recognised. GitHub issue 922. + * Fix ECH with a background colour. * Do not rely on the terminal not moving the cursor after DL or EL. @@ -12,7 +15,7 @@ CHANGES FROM 2.4 to 2.5 09 May 2017 * Add pane_mode format. * Differentiate M-Up from Escape+Up when possible (that is, in terminals with - xterm(1) style functions keys). GitHub issue 907. + xterm(1) style function keys). GitHub issue 907. * Add session_stack and window_stack_index formats. diff --git a/format.c b/format.c index ddc5a7a5..35d8ee28 100644 --- a/format.c +++ b/format.c @@ -320,6 +320,7 @@ format_job_get(struct format_tree *ft, const char *cmd) xasprintf(&fj->out, "<'%s' didn't start>", fj->cmd); } fj->last = t; + fj->updated = 0; } if (ft->flags & FORMAT_STATUS)