mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
When we tried to copy/paste multiple rows up to and including the last row in our view, we'd have a blueslip error when the `for` loop checked the condition `rows.id(row) <= ...` after we had called `row = rows.next_visible(row)` on the last row. Basically, `rows.id()` would complain about a non-existent row. Now we extract that code into `visible_range`, so that our `while` loop can exit as soon as we found the last row in the range.
12 KiB
12 KiB