robmcmullen / omnivore

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

Can't paste regular text any more #167

Closed robmcmullen closed 7 years ago

robmcmullen commented 7 years ago

Trying to paste text (from another app or from Copy Disassembly) results in:

Traceback (most recent call last):
  File "/noaa/maproom-deps/omnivore/omnivore8bit/ui/bytegrid.py", line 710, in on_right_down
    index = -1
  File "/noaa/maproom-deps/omnivore/omnivore/framework/editor.py", line 796, in popup_context_menu_from_actions
    action.perform(action_event)
  File "/noaa/maproom-deps/omnivore/omnivore/framework/actions.py", line 329, in perform
    self.active_editor.paste()
  File "/noaa/maproom-deps/omnivore/omnivore/framework/editor.py", line 359, in paste
    self.process_paste_data_object(data_obj, cmd_cls)
  File "/noaa/maproom-deps/omnivore/omnivore8bit/hex_edit/hex_editor.py", line 203, in process_paste_data_object
    self.process_command(cmd)
  File "/noaa/maproom-deps/omnivore/omnivore/framework/editor.py", line 663, in process_command
    undo = self.process_batch_command(command, f, batch)
  File "/noaa/maproom-deps/omnivore/omnivore/framework/editor.py", line 676, in process_batch_command
    undo = self.document.undo_stack.perform(command, self, batch)
  File "/noaa/maproom-deps/omnivore/omnivore/utils/command.py", line 89, in perform
    cmd.perform(editor, undo_info)
  File "/noaa/maproom-deps/omnivore/omnivore/utils/command.py", line 329, in perform
    old_data = self.do_change(editor, undo_info)
  File "/noaa/maproom-deps/omnivore/omnivore8bit/commands.py", line 128, in do_change
    style = self.style[0:np.alen(data)]
TypeError: 'NoneType' object has no attribute '__getitem__'