MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / moveToEndOfLine

Method moveToEndOfLine

python/examples/triage/byte.py:715–724  ·  view source on GitHub ↗
(self, selecting)

Source from the content-addressed store, hash-verified

713 self.viewport().update()
714
715 def moveToEndOfLine(self, selecting):
716 for i in self.lines:
717 if (self.cursorAddr >= i.address) and (self.cursorAddr < (i.address + i.length)):
718 self.cursorAddr = i.address + i.length - 1
719 break
720 if not selecting:
721 self.selectNone()
722 self.repositionCaret()
723 if self.selectionVisible or selecting:
724 self.viewport().update()
725
726 def moveToStartOfView(self, selecting):
727 self.cursorAddr = self.getStart()

Callers 1

__init__Method · 0.95

Calls 3

selectNoneMethod · 0.95
repositionCaretMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected