# window_copy_search_marks

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3269
- **Page:** https://libtmux.org/en/tmux/3.2a/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/3.2a/reference/c-function-window-copy-c-window_copy_cmd_history_bottom/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1191)
- [`window_copy_cmd_history_top`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_cmd_history_top/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L1212)
- [`window_copy_pagedown`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_pagedown/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L654)
- [`window_copy_pageup1`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_pageup1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L604)
- [`window_copy_scroll_down`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_scroll_down/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4827)
- [`window_copy_scroll_to`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_scroll_to/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L2486)
- [`window_copy_scroll_up`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_scroll_up/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L4791)
- [`window_copy_search`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3175)
- [`window_copy_size_changed`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_size_changed/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L792)

## Calls

- [`get_timer`](/en/tmux/3.2a/reference/c-function-get_timer/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3310)
- [`screen_free`](/en/tmux/3.2a/reference/c-function-screen_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3398)
- [`screen_init`](/en/tmux/3.2a/reference/c-function-screen_init/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3286)
- [`screen_write_nputs`](/en/tmux/3.2a/reference/c-function-screen_write_nputs/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3288)
- [`screen_write_start`](/en/tmux/3.2a/reference/c-function-screen_write_start/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3287)
- [`screen_write_stop`](/en/tmux/3.2a/reference/c-function-screen_write_stop/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3290)
- [`screen_write_strlen`](/en/tmux/3.2a/reference/c-function-screen_write_strlen/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3285)
- [`window_copy_clear_marks`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_clear_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3368)
- [`window_copy_is_lowercase`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_is_lowercase/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3295)
- [`window_copy_search_lr`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_lr/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3334)
- [`window_copy_search_lr_regex`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_lr_regex/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3329)
- [`window_copy_search_mark_at`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_search_mark_at/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3341)
- [`window_copy_stringify`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_stringify/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3300)
- [`window_copy_visible_lines`](/en/tmux/3.2a/reference/c-function-window-copy-c-window_copy_visible_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3313)
- [`xcalloc`](/en/tmux/3.2a/reference/c-function-xcalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3322)
- [`xmalloc`](/en/tmux/3.2a/reference/c-function-xmalloc/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-copy.c#L3298)

## Referenced declarations

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