# window_copy_visible_lines

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4360
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-window-copy-c-window_copy_visible_lines/

```c
static void window_copy_visible_lines(struct window_copy_mode_data *data, u_int *start, u_int *end)
```

## Parameters

- `data` (`struct window_copy_mode_data *`)
- `start` (`u_int *`)
- `end` (`u_int *`)

## Called by

- [`window_copy_search_marks`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4473)

## Calls

- [`grid_peek_line`](/en/tmux/latest/reference/c-function-grid_peek_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4367)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`grid_line.flags`](/en/tmux/latest/reference/c-struct-grid_line-flags/) (attribute)
- [`screen.grid`](/en/tmux/latest/reference/c-struct-screen-grid/) (attribute)
- [`GRID_LINE_WRAPPED`](/en/tmux/latest/reference/c-define-tmux-h-grid_line_wrapped/) (constant)
- [`grid.hsize`](/en/tmux/latest/reference/c-struct-grid-hsize/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`grid.sy`](/en/tmux/latest/reference/c-struct-grid-sy/) (attribute)
- [`window_copy_mode_data`](/en/tmux/latest/reference/c-struct-window_copy_mode_data/) (struct)
