https://winscp.net/tracker/1565 Source commit: 80d88ddca3d0f7a942dbcc662df8f28acb56514d
@@ -217,7 +217,7 @@ procedure TCustomNortonLikeListView.Delete(Item: TListItem);
var
Index: Integer;
begin
- if FLastDeletedItem <> Item then
+ if (FLastDeletedItem <> Item) and (not FClearingItems) then
Index := Item.Index;