mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 18:37:02 +10: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)