mirror of
https://github.com/neovim/neovim.git
synced 2025-11-14 22:39:08 +00:00
Problem: After filtering out all elements, ArrayIter:last still returns a stale element.
Solution: Add check for self._head == self._tail and return nil early.
Fix #34696
(cherry picked from commit 4fe51dfdae)