# cmd_find_get_pane

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

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

## Parameters

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

## Called by

- [`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#L1212)

## Calls

- [`cmd_find_best_session_with_window`](/en/tmux/3.7c/reference/c-function-cmd-find-c-cmd_find_best_session_with_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L510)
- [`cmd_find_get_pane_with_window`](/en/tmux/3.7c/reference/c-function-cmd-find-c-cmd_find_get_pane_with_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L520)
- [`log_debug`](/en/tmux/3.7c/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-find.c#L502)
- [`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#L506)

## Other function references

- [`cmd_find_get_window`](/en/tmux/3.7c/reference/c-function-cmd-find-c-cmd_find_get_window/) (function)

## 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)
- [`cmd_find_state.current`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-current/) (attribute)
- [`cmd_find_state.idx`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-idx/) (attribute)
- [`cmd_find_state.s`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-s/) (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.wl`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-wl/) (attribute)
- [`cmd_find_state.wp`](/en/tmux/3.7c/reference/c-struct-cmd_find_state-wp/) (attribute)
