diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2023-08-09 15:41:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-09 15:41:45 -0500 |
commit | 2ee8ace217b8e4405822d3ab1bed5a20bedc4b04 (patch) | |
tree | fdee6f6d0e87ebe9a3c8689866e2c2530b79dd43 /runtime/lua/vim/_meta/options.lua | |
parent | cc4540ebce6b719e735ef314b4acc5460aa1aeae (diff) | |
download | rneovim-2ee8ace217b8e4405822d3ab1bed5a20bedc4b04.tar.gz rneovim-2ee8ace217b8e4405822d3ab1bed5a20bedc4b04.tar.bz2 rneovim-2ee8ace217b8e4405822d3ab1bed5a20bedc4b04.zip |
fix(iter): make pipeline termination conditions consistent (#24614)
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).
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
0 files changed, 0 insertions, 0 deletions