Skip to content

Commit

Permalink
Use saved variable instead of cursorDisplay
Browse files Browse the repository at this point in the history
May as well just use the local that was created.
  • Loading branch information
saulpw authored Jan 12, 2025
1 parent 483fbe7 commit 7988e02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visidata/features/sysedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ def syseditCells_async(sheet, cols, rows, filetype=None):
col.setValuesTyped(edited_rows, *edited_vals)


TableSheet.addCommand('^O', 'sysedit-cell', 'cd = cursorDisplay; e = vd.launchExternalEditor(cursorDisplay); cursorCol.setValues([cursorRow], e) if e != cd else None', 'edit current cell in external $EDITOR')
TableSheet.addCommand('^O', 'sysedit-cell', 'cd = cursorDisplay; e = vd.launchExternalEditor(cd); cursorCol.setValues([cursorRow], e) if e != cd else None', 'edit current cell in external $EDITOR')
Sheet.addCommand('g^O', 'sysedit-selected', 'syseditCells(visibleCols, onlySelectedRows)', 'edit rows in $EDITOR')

0 comments on commit 7988e02

Please sign in to comment.