MCPcopy Index your code
hub / github.com/SirVer/ultisnips / remember_buffer

Method remember_buffer

pythonx/UltiSnips/vim_state.py:82–86  ·  view source on GitHub ↗

Remember the content of the buffer and the position.

(self, to)

Source from the content-addressed store, hash-verified

80 self._poss.append(VimPosition())
81
82 def remember_buffer(self, to):
83 """Remember the content of the buffer and the position."""
84 self._lvb = vim_helper.buf[to.start.line : to.end.line + 1]
85 self._lvb_len = len(vim_helper.buf)
86 self.remember_position()
87
88 @property
89 def pos(self):

Callers 4

_cursor_movedMethod · 0.80
_jumpMethod · 0.80
_do_snippetMethod · 0.80
__setitem__Method · 0.80

Calls 1

remember_positionMethod · 0.95

Tested by

no test coverage detected