Skip to content

Commit

Permalink
[column-] make cell error symbol clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef authored and anjakefala committed Jul 1, 2024
1 parent e00e8d8 commit fbd06c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions visidata/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def getCell(self, row):
dispval = options.disp_error_val
return DisplayWrapper(cellval.val, error=exc.stacktrace,
text=dispval,
note=options.disp_note_getexc,
note=f'[:onclick error-cell]{options.disp_note_getexc}[:]',
notecolor='color_error')
elif typedval.val is None: # early out for strict None
return DisplayWrapper(None, text='', # force empty display for None
Expand All @@ -377,12 +377,12 @@ def getCell(self, row):
elif isinstance(typedval, TypedExceptionWrapper): # calc succeeded, type failed
return DisplayWrapper(typedval.val, text=str(cellval),
error=typedval.stacktrace,
note=options.disp_note_typeexc,
note=f'[:onclick error-cell]{options.disp_note_typeexc}[:]',
notecolor='color_warning')
else:
return DisplayWrapper(typedval.val, text=str(typedval.val),
error=['unknown'],
note=options.disp_note_typeexc,
note=f'[:onclick error-cell]{options.disp_note_typeexc}[:]',
notecolor='color_warning')

elif isinstance(typedval, threading.Thread):
Expand Down

0 comments on commit fbd06c8

Please sign in to comment.