Skip to content

Commit

Permalink
[vds-] save ItemColumn needs to override expr #2037
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Sep 27, 2023
1 parent 61a254c commit 198fcc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions visidata/loaders/vds.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ def save_vds(vd, p, *sheets):
d = col.__getstate__()
if isinstance(col, SettableColumn):
d['col'] = 'Column'
elif isinstance(col, ItemColumn):
d['col'] = 'Column'
d['expr'] = col.name #2037 override expr
else:
d['col'] = type(col).__name__
fp.write('#'+json.dumps(d)+NL)
Expand Down

0 comments on commit 198fcc4

Please sign in to comment.