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

View File

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