Skip to content

Commit

Permalink
[errors-] fix error-recent always showing "no error"
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef authored and anjakefala committed Dec 2, 2024
1 parent 15aa24c commit 37f0a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/textsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def recentErrorsSheet(self):



BaseSheet.addCommand('^E', 'error-recent', 'vd.lastErrors and vd.push(recentErrorsSheet) or status("no error")', 'view traceback for most recent error')
BaseSheet.addCommand('^E', 'error-recent', 'vd.push(recentErrorsSheet) if vd.lastErrors else status("no error")', 'view traceback for most recent error')
BaseSheet.addCommand('g^E', 'errors-all', 'vd.push(vd.allErrorsSheet)', 'view traceback for most recent errors')

Sheet.addCommand('z^E', 'error-cell', 'vd.push(ErrorCellSheet(sheet.name+"_cell_error", sourceSheet=sheet, source=getattr(cursorCell, "error", None) or fail("no error this cell")))', 'view traceback for error in current cell')
Expand Down

0 comments on commit 37f0a0c

Please sign in to comment.