# mode_tree_get_current

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/mode-tree.c#L275
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-mode_tree_get_current/

```c
void * mode_tree_get_current(struct mode_tree_data *mtd)
```

## Parameters

- `mtd` (`struct mode_tree_data *`)

## Called by

- [`window_buffer_key`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L514)
- [`window_client_key`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-client.c#L396)
- [`window_customize_change_current_callback`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_change_current_callback/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1363)
- [`window_customize_key`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1419)
- [`window_tree_key`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-tree.c#L1243)

## Referenced by

- [`window_buffer_do_delete`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_do_delete/) (function)
- [`window_client_do_detach`](/en/tmux/3.2a/reference/c-function-window-client-c-window_client_do_detach/) (function)
- [`window_customize_reset_key`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_reset_key/) (function)
- [`window_customize_unset_key`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_unset_key/) (function)
- [`window_customize_unset_option`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_unset_option/) (function)
- [`window_tree_kill_current_callback`](/en/tmux/3.2a/reference/c-function-window-tree-c-window_tree_kill_current_callback/) (function)

## Referenced declarations

- [`mode_tree_data.current`](/en/tmux/3.2a/reference/c-struct-mode_tree_data-current/) (attribute)
- [`mode_tree_line.item`](/en/tmux/3.2a/reference/c-struct-mode_tree_line-item/) (attribute)
- [`mode_tree_item.itemdata`](/en/tmux/3.2a/reference/c-struct-mode_tree_item-itemdata/) (attribute)
- [`mode_tree_data.line_list`](/en/tmux/3.2a/reference/c-struct-mode_tree_data-line_list/) (attribute)
- [`mode_tree_data`](/en/tmux/3.2a/reference/c-struct-mode_tree_data/) (struct)
