commit bash-20210224 snapshot

This commit is contained in:
Chet Ramey
2021-03-01 15:03:46 -05:00
parent c3b1868126
commit fd2822e645
13 changed files with 2449 additions and 2285 deletions
+3 -1
View File
@@ -374,7 +374,9 @@ bash_delete_history_range (first, last)
HIST_ENTRY **discard_list;
discard_list = remove_history_range (first, last);
for (i = 0; discard_list && discard_list[i]; i++)
if (discard_list == 0)
return 0;
for (i = 0; discard_list[i]; i++)
free_history_entry (discard_list[i]);
history_lines_this_session -= i;