# window_pane_search

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

```c
u_int window_pane_search(struct window_pane *wp, const char *term, int regex, int ignore)
```

## Parameters

- `wp` (`struct window_pane *`)
- `term` (`const char *`)
- `regex` (`int`)
- `ignore` (`int`)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1429)
- [`xasprintf`](/en/tmux/3.7c/reference/c-function-xasprintf/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1414)

## Other function references

- [`grid_view_string_cells`](/en/tmux/3.7c/reference/c-function-grid_view_string_cells/) (function)

## Referenced by

- [`format_search`](/en/tmux/3.7c/reference/c-function-format-c-format_search/) (function)

## Referenced declarations

- [`window_pane.base`](/en/tmux/3.7c/reference/c-struct-window_pane-base/) (attribute)
- [`FNM_CASEFOLD`](/en/tmux/3.7c/reference/c-define-compat-h-fnm_casefold/) (constant)
- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`screen_size_x`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`screen_size_y`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_size_y/) (constant)
- [`window_pane`](/en/tmux/3.7c/reference/c-struct-window_pane/) (struct)
