Skip to content

Commit

Permalink
[options-] disable adding rows
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef committed Jun 30, 2023
1 parent 7120da5 commit 8b292d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions visidata/metasheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ def reload(self):
self.addRow(opt)
self.columns[2].name = 'global_value' if self.source == 'global' else 'sheet_value'

def newRow(self):
vd.fail('adding rows to the options sheet is not supported.')
return


vd._lastInputs = collections.defaultdict(dict) # [input_type] -> {'input': anything}

Expand Down

0 comments on commit 8b292d2

Please sign in to comment.