# window_copy_search

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

```c
static int window_copy_search(struct window_mode_entry *, int, int)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `direction` (`int`)
- `regex` (`int`)

## Called by

- [`window_copy_search_down`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4575)
- [`window_copy_search_up`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4569)

## Calls

- [`options_get_number`](/en/tmux/latest/reference/c-function-options_get_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4260)
- [`screen_free`](/en/tmux/latest/reference/c-function-screen_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4355)
- [`screen_init`](/en/tmux/latest/reference/c-function-screen_init/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4255)
- [`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#L4257)
- [`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#L4256)
- [`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#L4258)
- [`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#L4245)
- [`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#L4261)
- [`window_copy_move_after_search_mark`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_move_after_search_mark/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4276)
- [`window_copy_move_left`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_move_left/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4288)
- [`window_copy_move_right`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_move_right/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4283)
- [`window_copy_redraw_screen`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_redraw_screen/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4353)
- [`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#L4292)
- [`window_copy_search_mark_at`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_mark_at/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4334)
- [`window_copy_search_marks`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_search_marks/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4295)
- [`xstrdup`](/en/tmux/latest/reference/c-function-xstrdup/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L4247)

## Other function references

- [`screen_write_strlen`](/en/tmux/latest/reference/c-function-screen_write_strlen/) (function)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_copy_mode_data.cx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cx/) (attribute)
- [`window_copy_mode_data.cy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cy/) (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)
- [`MODEKEY_EMACS`](/en/tmux/latest/reference/c-define-tmux-h-modekey_emacs/) (constant)
- [`MODEKEY_VI`](/en/tmux/latest/reference/c-define-tmux-h-modekey_vi/) (constant)
- [`window.options`](/en/tmux/latest/reference/c-struct-window-options/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`screen_hsize`](/en/tmux/latest/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`window_copy_mode_data.searchall`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchall/) (attribute)
- [`window_copy_mode_data.searchdirection`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchdirection/) (attribute)
- [`window_copy_mode_data.searchmark`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchmark/) (attribute)
- [`window_pane.searchregex`](/en/tmux/latest/reference/c-struct-window_pane-searchregex/) (attribute)
- [`window_copy_mode_data.searchstr`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-searchstr/) (attribute)
- [`window_pane.searchstr`](/en/tmux/latest/reference/c-struct-window_pane-searchstr/) (attribute)
- [`grid.sy`](/en/tmux/latest/reference/c-struct-grid-sy/) (attribute)
- [`window_copy_mode_data.timeout`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-timeout/) (attribute)
- [`window_pane.window`](/en/tmux/latest/reference/c-struct-window_pane-window/) (attribute)
- [`window_mode_entry`](/en/tmux/latest/reference/c-struct-window_mode_entry/) (struct)
- [`window_mode_entry.wp`](/en/tmux/latest/reference/c-struct-window_mode_entry-wp/) (attribute)
