Trigger prompt repaint after printing parser error or background job warning

See #7289
This commit is contained in:
Johannes Altmanninger 2020-08-27 21:18:26 +02:00
parent c4f8c95c52
commit 09f189870e
2 changed files with 2 additions and 0 deletions

View File

@ -230,6 +230,7 @@ void print_exit_warning_for_jobs(const job_list_t &jobs) {
fputws(L"\n", stdout);
fputws(_(L"A second attempt to exit will terminate them.\n"), stdout);
fputws(_(L"Use 'disown PID' to remove jobs from the list without terminating them.\n"), stdout);
reader_schedule_prompt_repaint();
}
void job_mark_process_as_failed(const std::shared_ptr<job_t> &job, const process_t *failed_proc) {

View File

@ -2279,6 +2279,7 @@ static parser_test_error_bits_t reader_shell_test(parser_t &parser, const wcstri
error_desc.push_back(L'\n');
}
std::fwprintf(stderr, L"\n%ls", error_desc.c_str());
reader_schedule_prompt_repaint();
}
return res;
}