mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-11 12:40:42 +02:00
commit bash-20210224 snapshot
This commit is contained in:
+3
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user