# cmd_find_clear_state

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L644
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-cmd_find_clear_state/

```c
void cmd_find_clear_state(struct cmd_find_state *fs, int flags)
```

## Parameters

- `fs` (`struct cmd_find_state *`)
- `flags` (`int`)

## Called by

- [`cmd_find_from_client`](/en/tmux/3.2a/reference/c-function-cmd_find_from_client/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L869)
- [`cmd_find_from_mouse`](/en/tmux/3.2a/reference/c-function-cmd_find_from_mouse/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L841)
- [`cmd_find_from_nothing`](/en/tmux/3.2a/reference/c-function-cmd_find_from_nothing/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L821)
- [`cmd_find_from_session`](/en/tmux/3.2a/reference/c-function-cmd_find_from_session/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L725)
- [`cmd_find_from_session_window`](/en/tmux/3.2a/reference/c-function-cmd_find_from_session_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L754)
- [`cmd_find_from_window`](/en/tmux/3.2a/reference/c-function-cmd_find_from_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L772)
- [`cmd_find_from_winlink`](/en/tmux/3.2a/reference/c-function-cmd_find_from_winlink/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L739)
- [`cmd_find_from_winlink_pane`](/en/tmux/3.2a/reference/c-function-cmd_find_from_winlink_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L794)
- [`cmd_find_target`](/en/tmux/3.2a/reference/c-function-cmd_find_target/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-find.c#L968)
- [`cmdq_find_flag`](/en/tmux/3.2a/reference/c-function-cmd-queue-c-cmdq_find_flag/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L531)
- [`cmdq_new_state`](/en/tmux/3.2a/reference/c-function-cmdq_new_state/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-queue.c#L222)
- [`notify_insert_hook`](/en/tmux/3.2a/reference/c-function-notify-c-notify_insert_hook/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/notify.c#L68)
- [`server_clear_marked`](/en/tmux/3.2a/reference/c-function-server_clear_marked/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server.c#L79)
- [`server_set_marked`](/en/tmux/3.2a/reference/c-function-server_set_marked/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server.c#L68)
- [`window_tree_get_target`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_get_target/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L1030)

## Referenced by

- [`cmd_find_current_client`](/en/tmux/3.2a/reference/c-function-cmd-find-c-cmd_find_current_client/) (function)
- [`tty_cmd_erasecharacter`](/en/tmux/3.2a/reference/c-function-tty_cmd_erasecharacter/) (function)

## Referenced declarations

- [`cmd_find_state`](/en/tmux/3.2a/reference/c-struct-cmd_find_state/) (struct)
- [`cmd_find_state.flags`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-flags/) (attribute)
- [`window_pane.flags`](/en/tmux/3.2a/reference/c-struct-window_pane-flags/) (attribute)
- [`cmd_find_state.idx`](/en/tmux/3.2a/reference/c-struct-cmd_find_state-idx/) (attribute)
