MCPcopy
hub / github.com/SirVer/ultisnips / _reset

Method _reset

pythonx/UltiSnips/text_objects/python_code.py:75–85  ·  view source on GitHub ↗

Gets the snippet ready for another update. :cur: the new value for c.

(self, cur)

Source from the content-addressed store, hash-verified

73 self._parent = parent
74
75 def _reset(self, cur):
76 """Gets the snippet ready for another update.
77
78 :cur: the new value for c.
79
80 """
81 self._ind.reset()
82 self._cur = cur
83 self._rv = ""
84 self._changed = False
85 self.reset_indent()
86
87 def shift(self, amount=1):
88 """Shifts the indentation level. Note that this uses the shiftwidth

Callers 2

__init__Method · 0.95
_updateMethod · 0.80

Calls 2

reset_indentMethod · 0.95
resetMethod · 0.45

Tested by

no test coverage detected