MCPcopy Create free account
hub / github.com/bpython/bpython / cpos

Method cpos

bpython/urwid.py:735–738  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

733
734 @property
735 def cpos(self):
736 if self.edit is not None:
737 return len(self.current_line) - self.edit.edit_pos
738 return 0
739
740 def _get_cursor_offset(self):
741 return self.edit.edit_pos

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected