Explain delayed pane content cleanup

This commit is contained in:
Bruno Sutic 2021-12-19 16:21:44 +01:00
parent dc6252d950
commit 027960ad25
No known key found for this signature in database
GPG Key ID: CAFA7B1B2914ED81
1 changed files with 2 additions and 0 deletions

View File

@ -372,6 +372,8 @@ restore_active_and_alternate_sessions() {
done < $(last_resurrect_file)
}
# A cleanup that happens after 'restore_all_panes' seems to fix fish shell
# users' restore problems.
cleanup_restored_pane_contents() {
if is_restoring_pane_contents; then
rm "$(pane_contents_dir "restore")"/*