When we request to display the last line, we need to know if the last
line is fully displayed. We previously assumed it wasn't, which created
strange artifacts.
We can know for certain, so add that test.
Signed-off-by: NeilBrown <neil@brown.name>
### Triage
-- [ ] when search succeeds near eof then trying again loops back to
+- [X] when search succeeds on final line then trying again loops back to
there, redraw is strange
- [ ] There is a "window:close" and a "Window:close" and they are
different. Fix this!
/* top line not fully displayed, being in that line is
* not sufficient */
top = vmark_next(top);
- if (bot)
+ if (bot && rl->tail_height)
/* last line might not be fully displayed, so don't assume */
bot = vmark_prev(bot);
if (!top || !bot ||