1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-26 02:46:13 -04:00

[terminal] Do not count non-existent temporary files

Weird names were counted on slave terminals, but files
were not created.
This commit is contained in:
Witold Filipczyk 2023-08-22 17:19:11 +02:00
parent 43f970d1f4
commit 33731cf82c

View File

@ -440,7 +440,7 @@ exec_on_terminal(struct terminal *term, const char *path,
} else {
size_t len = strlen(delete_);
if (len && get_opt_bool("ui.sessions.postpone_unlink", NULL)) {
if (len && *path && get_opt_bool("ui.sessions.postpone_unlink", NULL)) {
temporary_files[delete_] = true;
len = 0;
delete_ = "";