# mode_tree_up

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

```c
void mode_tree_up(struct mode_tree_data *mtd, int wrap)
```

## Parameters

- `mtd` (`struct mode_tree_data *`)
- `wrap` (`int`)

## Called by

- [`mode_tree_key`](/en/tmux/3.2a/reference/c-function-mode_tree_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/mode-tree.c#L1050)
- [`window_customize_reset_key`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_reset_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1321)
- [`window_customize_unset_key`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_unset_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1301)
- [`window_customize_unset_option`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_unset_option/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1146)

## Referenced declarations

- [`mode_tree_data.current`](/en/tmux/3.2a/reference/c-struct-mode_tree_data-current/) (attribute)
- [`mode_tree_data.height`](/en/tmux/3.2a/reference/c-struct-mode_tree_data-height/) (attribute)
- [`mode_tree_data.line_size`](/en/tmux/3.2a/reference/c-struct-mode_tree_data-line_size/) (attribute)
- [`mode_tree_data`](/en/tmux/3.2a/reference/c-struct-mode_tree_data/) (struct)
- [`mode_tree_data.offset`](/en/tmux/3.2a/reference/c-struct-mode_tree_data-offset/) (attribute)
