robmcmullen / omnivore

Hex editor and debugging emulator, sponsored by the Player/Missile Podcast
Mozilla Public License 2.0
53 stars 7 forks source link

revert to baseline data broken #109

Closed robmcmullen closed 7 years ago

robmcmullen commented 7 years ago

Tried to revert a byte, got:

Traceback (most recent call last):
  File "/noaa/maproom-deps/omnivore/omnivore/utils/wx/bytegrid.py", line 709, in on_right_down
    self.editor.popup_context_menu_from_actions(self, actions, popup_data)
  File "/noaa/maproom-deps/omnivore/omnivore/framework/editor.py", line 799, in popup_context_menu_from_actions
    action.perform(action_event)
  File "/noaa/maproom-deps/omnivore/omnivore/tasks/hex_edit/actions.py", line 914, in perform
    self.active_editor.process_command(cmd)
  File "/noaa/maproom-deps/omnivore/omnivore/framework/editor.py", line 686, in process_command
    undo = self.process_batch_command(command, f, batch)
  File "/noaa/maproom-deps/omnivore/omnivore/framework/editor.py", line 699, in process_batch_command
    undo = self.document.undo_stack.perform(command, self, batch)
  File "/noaa/maproom-deps/omnivore/omnivore/utils/command.py", line 88, in perform
    undo_info = cmd.perform(editor)
  File "/noaa/maproom-deps/omnivore/omnivore/tasks/hex_edit/commands.py", line 502, in perform
    undo.flags.index_range = indexes[0], indexes[-1]
IndexError: index 0 is out of bounds for axis 0 with size 0