Skip to content

Commit

Permalink
Fixed flood with empty span
Browse files Browse the repository at this point in the history
  • Loading branch information
TexZK committed Feb 23, 2020
1 parent 7531bc4 commit 7bf2dac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/hexrec/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2025,8 +2025,10 @@ def __getitem__(
step = self.autofill

if isinstance(step, self.items_type):
blocks = read(blocks, start, endex, step, self.items_join)
blocks = flood(blocks, pattern=step, join=self.items_join)
blocks = read(blocks, start, endex, step,
join=self.items_join)
blocks = flood(blocks, start, endex, step,
join=self.items_join)
items = self.items_join(items for _, items in blocks)
return items

Expand Down

0 comments on commit 7bf2dac

Please sign in to comment.