diff --git a/pythonx/UltiSnips/vim_helper.py b/pythonx/UltiSnips/vim_helper.py index e295abcc..19feec7f 100755 --- a/pythonx/UltiSnips/vim_helper.py +++ b/pythonx/UltiSnips/vim_helper.py @@ -28,6 +28,9 @@ def __setitem__(self, idx, text): def __len__(self): return len(vim.current.buffer) + def __iter__(self): + return iter(vim.current.buffer) + @property def line_till_cursor(self): # pylint:disable=no-self-use """Returns the text before the cursor."""