# window_copy_search_mark_match

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

```c
static u_int window_copy_search_mark_match(struct window_copy_mode_data *, u_int, u_int, u_int, int)
```

## Parameters

- `data` (`struct window_copy_mode_data *`)
- `px` (`u_int`)
- `py` (`u_int`)
- `width` (`u_int`)
- `regex` (`int`)

## Called by

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

## Calls

- [`grid_get_cell`](/en/tmux/3.7c/reference/c-function-grid_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4408)
- [`window_copy_clip_width`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_clip_width/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4404)
- [`window_copy_search_mark_at`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_search_mark_at/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4403)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`grid_cell.data`](/en/tmux/3.7c/reference/c-struct-grid_cell-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/3.7c/reference/c-struct-grid_cell-flags/) (attribute)
- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`GRID_FLAG_TAB`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_flag_tab/) (constant)
- [`grid.sx`](/en/tmux/3.7c/reference/c-struct-grid-sx/) (attribute)
- [`grid.sy`](/en/tmux/3.7c/reference/c-struct-grid-sy/) (attribute)
- [`utf8_data.width`](/en/tmux/3.7c/reference/c-struct-utf8_data-width/) (attribute)
- [`window_copy_mode_data`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data/) (struct)
