Rename the visible ranges functions since they really relate to windows

and put them nto a new file.
This commit is contained in:
nicm
2026-06-16 10:47:35 +00:00
parent 4b772fd783
commit 9ad75e1dc3
7 changed files with 251 additions and 229 deletions

View File

@@ -1851,8 +1851,8 @@ server_client_reset_state(struct client *c)
cx = wp->xoff + (int)s->cx - (int)ox;
cy = wp->yoff + (int)s->cy - (int)oy;
r = screen_redraw_get_visible_ranges(wp, cx, cy, 1, NULL);
if (!screen_redraw_is_visible(r, cx))
r = window_visible_ranges(wp, cx, cy, 1, NULL);
if (!window_position_is_visible(r, cx))
cursor = 0;
if (status_at_line(c) == 0)