Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1041: iterating over snip.buffer fails in neovim. Use __iter__() to defer iteration of a buffer to the underlying object. Test * Run this code in neovim and vim: import vim import UltiSnips.vim_helper as helper def dump(b): for line in b: print(line.upper()) # This works fine in both nvim and vim. dump(vim.current.buffer) # In nvim, the iteration previously failed with "pynvim.api.common.NvimError: Index out of bounds" dump(helper.VimBuffer())
- Loading branch information