# window_copy_search_marks

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

```c
static int window_copy_search_marks(struct window_mode_entry *, struct screen *, int, int)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `ssp` (`struct screen *`)
- `regex` (`int`)
- `visible_only` (`int`)

## Called by

- [`window_copy_cmd_history_bottom`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_history_bottom/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1682)
- [`window_copy_cmd_history_top`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cmd_history_top/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1703)
- [`window_copy_pagedown1`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_pagedown1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L853)
- [`window_copy_pageup1`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_pageup1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L793)
- [`window_copy_scroll_down`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6366)
- [`window_copy_scroll_to`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll_to/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L3562)
- [`window_copy_scroll_up`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6301)
- [`window_copy_scroll1`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_scroll1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L740)
- [`window_copy_search`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4295)
- [`window_copy_size_changed`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_size_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1063)

## Calls

- [`get_timer`](/en/tmux/latest/reference/c-function-get_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4470)
- [`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#L4491)
- [`screen_free`](/en/tmux/latest/reference/c-function-screen_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4548)
- [`screen_init`](/en/tmux/latest/reference/c-function-screen_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4446)
- [`screen_write_nputs`](/en/tmux/latest/reference/c-function-screen_write_nputs/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4448)
- [`screen_write_start`](/en/tmux/latest/reference/c-function-screen_write_start/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4447)
- [`screen_write_stop`](/en/tmux/latest/reference/c-function-screen_write_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4450)
- [`screen_write_strlen`](/en/tmux/latest/reference/c-function-screen_write_strlen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4445)
- [`window_copy_clear_marks`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_clear_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4518)
- [`window_copy_is_lowercase`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_is_lowercase/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4455)
- [`window_copy_search_lr`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_lr/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4497)
- [`window_copy_search_lr_regex`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_lr_regex/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4489)
- [`window_copy_search_mark_match`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_mark_match/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4503)
- [`window_copy_stringify`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_stringify/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4460)
- [`window_copy_visible_lines`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_visible_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4473)
- [`xcalloc`](/en/tmux/latest/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4482)
- [`xmalloc`](/en/tmux/latest/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4458)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`grid_cell.data`](/en/tmux/latest/reference/c-struct-grid_cell-data/) (attribute)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`screen.grid`](/en/tmux/latest/reference/c-struct-screen-grid/) (attribute)
- [`grid_default_cell`](/en/tmux/latest/reference/c-variable-grid_default_cell/) (attribute)
- [`grid.hsize`](/en/tmux/latest/reference/c-struct-grid-hsize/) (attribute)
- [`screen`](/en/tmux/latest/reference/c-struct-screen/) (struct)
- [`screen_size_x`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`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)
- [`WINDOW_COPY_SEARCH_ALL_TIMEOUT`](/en/tmux/latest/reference/c-define-window-copy-c-window_copy_search_all_timeout/) (constant)
- [`WINDOW_COPY_SEARCH_TIMEOUT`](/en/tmux/latest/reference/c-define-window-copy-c-window_copy_search_timeout/) (constant)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
