# window_copy_cmd_previous_matching_bracket

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1778
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_previous_matching_bracket/

```c
static enum window_copy_cmd_action window_copy_cmd_previous_matching_bracket(struct window_copy_cmd_state *cs)
```

## Parameters

- `cs` (`struct window_copy_cmd_state *`)

## Called by

- [`window_copy_cmd_next_matching_bracket`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_next_matching_bracket/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1909)

## Calls

- [`grid_get_cell`](/en/tmux/3.7c/reference/c-function-grid_get_cell/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1804)
- [`window_copy_cursor_previous_word`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cursor_previous_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1818)
- [`window_copy_find_length`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_find_length/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1794)
- [`window_copy_scroll_to`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_scroll_to/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L1857)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/3.7c/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`grid_cell.data`](/en/tmux/3.7c/reference/c-struct-grid_cell-data/) (attribute)
- [`utf8_data.data`](/en/tmux/3.7c/reference/c-struct-utf8_data-data/) (attribute)
- [`window_mode_entry.data`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-data/) (attribute)
- [`grid_cell.flags`](/en/tmux/3.7c/reference/c-struct-grid_cell-flags/) (attribute)
- [`screen.grid`](/en/tmux/3.7c/reference/c-struct-screen-grid/) (attribute)
- [`GRID_FLAG_PADDING`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_flag_padding/) (constant)
- [`MODEKEY_EMACS`](/en/tmux/3.7c/reference/c-define-tmux-h-modekey_emacs/) (constant)
- [`window_mode_entry.prefix`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-prefix/) (attribute)
- [`screen_hsize`](/en/tmux/3.7c/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`utf8_data.size`](/en/tmux/3.7c/reference/c-struct-utf8_data-size/) (attribute)
- [`window_copy_cmd_action`](/en/tmux/3.7c/reference/c-enum-window_copy_cmd_action/) (enum)
- [`WINDOW_COPY_CMD_NOTHING`](/en/tmux/3.7c/reference/c-enum-window_copy_cmd_action-window_copy_cmd_nothing/) (constant)
- [`window_copy_cmd_state`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state/) (struct)
- [`window_copy_cmd_state.wme`](/en/tmux/3.7c/reference/c-struct-window_copy_cmd_state-wme/) (attribute)
