Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions visidata/sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,9 @@ def loader(self):
self.rows = []
try:
with vd.Progress(gerund='loading', total=0):
max_rows = self.options.max_rows
for i, r in enumerate(self.iterload()):
if self.precious and i > self.options.max_rows:
if self.precious and i == max_rows:
break
self.addRow(r)
except FileNotFoundError:
Expand Down Expand Up @@ -1051,8 +1052,9 @@ def loader(self):

self.rows = []
# add the rest of the rows
max_rows = self.options.max_rows
for i, r in enumerate(vd.Progress(itsource, gerund='loading', total=0)):
if self.precious and i > self.options.max_rows:
if self.precious and i == max_rows:
break
self.addRow(r)

Expand Down
Loading