Closed robmcmullen closed 7 years ago
Maybe related to being the last segment in the file?
Huh, nope. Doesn't seem to be a problem in other files.
Related problem? select last segment in Jumpman (1983)(Epyx)(US)[!].atr
File "/noaa/maproom-deps/omnivore/omnivore/framework/minibuffer.py", line 163, in on_text
self.perform()
File "/noaa/maproom-deps/omnivore/omnivore/framework/minibuffer.py", line 326, in perform
self.editor.process_command(cmd)
File "/noaa/maproom-deps/omnivore/omnivore/framework/editor.py", line 676, in process_command
undo = self.process_batch_command(command, f, batch)
File "/noaa/maproom-deps/omnivore/omnivore/framework/editor.py", line 689, 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/omnivore8bit/hex_edit/commands.py", line 560, in perform
searcher = searcher_cls(editor, self.search_text)
File "/noaa/maproom-deps/omnivore/omnivore8bit/utils/searchutil.py", line 13, in __init__
self.matches = self.get_matches(editor)
File "/noaa/maproom-deps/omnivore/omnivore8bit/utils/searchutil.py", line 86, in get_matches
for index, comment in segment.iter_comments_in_segment():
File "/noaa/maproom-deps/omnivore/atrcopy/segments.py", line 995, in iter_comments_in_segment
end_index = self.get_raw_index(len(self.rawdata))
File "/noaa/maproom-deps/omnivore/atrcopy/segments.py", line 582, in get_raw_index
return self.rawdata.get_raw_index(i)
File "/noaa/maproom-deps/omnivore/atrcopy/segments.py", line 259, in get_raw_index
return int(self.order[i])
IndexError: index 40 is out of bounds for axis 0 with size 40
Loaded up jumpman, select Code segment, scrolled to 4900 or so, started a find, typed 4 and got: