Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | fix(iter): make pipeline termination conditions consistent (#24614) | Gregory Anders | 2023-08-09 |
| | | | | | | | | If an iterator pipeline stage returns nil as its first return value, the other return values are ignored and it is treated as if that stage returned only nil (the semantics of returning nil are different between different stages). This is consistent with how for loops work in Lua more generally, where the for loop breaks when the first return value from the function iterator is nil (see :h for-in for details). | ||
* | feat(lua): use callable table as iterator in vim.iter (#23957) | Mathias Fußenegger | 2023-06-10 |
| | | | | A table passed to `vim.iter` can be a class instance with a `__call` implementation for the iterator protocol. | ||
* | test: move vim.iter tests to separate file | Gregory Anders | 2023-04-24 |