# window_copy_search_rl

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2551
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_rl/

```c
static int window_copy_search_rl(struct grid *, struct grid *, u_int *, u_int, u_int, u_int, int)
```

## Parameters

- `gd` (`struct grid *`)
- `sgd` (`struct grid *`)
- `ppx` (`u_int *`)
- `py` (`u_int`)
- `first` (`u_int`)
- `last` (`u_int`)
- `cis` (`int`)

## Called by

- [`window_copy_search_jump`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_jump/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3047)

## Calls

- [`grid_get_line`](/en/tmux/3.2a/reference/c-function-grid_get_line/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2565)
- [`window_copy_search_compare`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_compare/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2574)

## Referenced declarations

- [`grid_line.flags`](/en/tmux/3.2a/reference/c-struct-grid_line-flags/) (attribute)
- [`grid`](/en/tmux/3.2a/reference/c-struct-grid/) (struct)
- [`GRID_LINE_WRAPPED`](/en/tmux/3.2a/reference/c-define-tmux-h-grid_line_wrapped/) (constant)
- [`grid.hsize`](/en/tmux/3.2a/reference/c-struct-grid-hsize/) (attribute)
- [`grid.sx`](/en/tmux/3.2a/reference/c-struct-grid-sx/) (attribute)
- [`grid.sy`](/en/tmux/3.2a/reference/c-struct-grid-sy/) (attribute)
