# window_copy_search_rl

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3637
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-window-copy-c-window_copy_search_jump/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4164)

## Calls

- [`grid_get_cell`](/en/tmux/latest/reference/c-function-grid_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3663)
- [`grid_get_line`](/en/tmux/latest/reference/c-function-grid_get_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3653)
- [`window_copy_search_compare`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_compare/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3667)

## Referenced declarations

- [`grid_cell.data`](/en/tmux/latest/reference/c-struct-grid_cell-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/latest/reference/c-struct-grid_cell-flags/) (attribute)
- [`grid_line.flags`](/en/tmux/latest/reference/c-struct-grid_line-flags/) (attribute)
- [`grid`](/en/tmux/latest/reference/c-struct-grid/) (struct)
- [`GRID_FLAG_TAB`](/en/tmux/latest/reference/c-define-tmux-h-grid_flag_tab/) (constant)
- [`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)
- [`grid.sx`](/en/tmux/latest/reference/c-struct-grid-sx/) (attribute)
- [`grid.sy`](/en/tmux/latest/reference/c-struct-grid-sy/) (attribute)
- [`utf8_data.width`](/en/tmux/latest/reference/c-struct-utf8_data-width/) (attribute)
