# cmd_find_get_pane_with_window

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L564
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-cmd-find-c-cmd_find_get_pane_with_window/

```c
static int cmd_find_get_pane_with_window(struct cmd_find_state *, const char *)
```

## Parameters

- `fs` (`struct cmd_find_state *`)
- `pane` (`const char *`)

## Called by

- [`cmd_find_get_pane`](/en/tmux/3.7c/reference/c-function-cmd-find-c-cmd_find_get_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L520)
- [`cmd_find_get_pane_with_session`](/en/tmux/3.7c/reference/c-function-cmd-find-c-cmd_find_get_pane_with_session/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L556)
- [`cmd_find_target`](/en/tmux/3.7c/reference/c-function-cmd_find_target/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L1183)

## Calls

- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L571)
- [`strtonum`](/en/tmux/3.7c/reference/c-function-strtonum/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L614)
- [`window_find_string`](/en/tmux/3.7c/reference/c-function-window_find_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L635)
- [`window_pane_at_index`](/en/tmux/3.7c/reference/c-function-window_pane_at_index/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L629)
- [`window_pane_find_by_id_str`](/en/tmux/3.7c/reference/c-function-window_pane_find_by_id_str/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L575)
- [`window_pane_find_down`](/en/tmux/3.7c/reference/c-function-window_pane_find_down/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L595)
- [`window_pane_find_left`](/en/tmux/3.7c/reference/c-function-window_pane_find_left/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L600)
- [`window_pane_find_right`](/en/tmux/3.7c/reference/c-function-window_pane_find_right/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L605)
- [`window_pane_find_up`](/en/tmux/3.7c/reference/c-function-window_pane_find_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L590)
- [`window_pane_next_by_number`](/en/tmux/3.7c/reference/c-function-window_pane_next_by_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L619)
- [`window_pane_previous_by_number`](/en/tmux/3.7c/reference/c-function-window_pane_previous_by_number/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L621)

## Referenced declarations

- [`window.active`](/en/tmux/3.7c/reference/c-struct-window-active/) (attribute)
- [`cmd_find_state`](/en/tmux/3.7c/reference/c-struct-cmd_find_state/) (struct)
- [`window.last_panes`](/en/tmux/3.7c/reference/c-struct-window-last_panes/) (attribute)
- [`cmd_find_state.w`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-w/) (attribute)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`cmd_find_state.wp`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-wp/) (attribute)
