mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 08:11:15 -03:00
Trigger prompt repaint after printing parser error or background job warning
See #7289
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user