# window_copy_cmd_select_word

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

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

## Parameters

- `cs` (`struct window_copy_cmd_state *`)

## Calls

- [`grid_get_line`](/en/tmux/latest/reference/c-function-grid_get_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2343)
- [`options_get_string`](/en/tmux/latest/reference/c-function-options_get_string/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2332)
- [`window_copy_cursor_next_word_end`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_next_word_end/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2350)
- [`window_copy_cursor_previous_word`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_cursor_previous_word/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2333)
- [`window_copy_redraw_lines`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_redraw_lines/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2354)
- [`window_copy_start_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_start_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2338)
- [`window_copy_update_cursor`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_update_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2352)
- [`window_copy_update_selection`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_update_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2353)

## Other function references

- [`window_copy_find_length`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_find_length/) (function)
- [`window_copy_in_set`](/en/tmux/latest/reference/c-function-window-copy-c-window_copy_in_set/) (function)

## Referenced declarations

- [`window_copy_mode_data.backing`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-backing/) (attribute)
- [`window_copy_mode_data.cx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cx/) (attribute)
- [`window_copy_mode_data.cy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-cy/) (attribute)
- [`window_mode_entry.data`](/en/tmux/latest/reference/c-struct-window_mode_entry-data/) (attribute)
- [`window_copy_mode_data.dx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-dx/) (attribute)
- [`window_copy_mode_data.dy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-dy/) (attribute)
- [`window_copy_mode_data.endselrx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-endselrx/) (attribute)
- [`window_copy_mode_data.endselry`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-endselry/) (attribute)
- [`grid_line.flags`](/en/tmux/latest/reference/c-struct-grid_line-flags/) (attribute)
- [`screen.grid`](/en/tmux/latest/reference/c-struct-screen-grid/) (attribute)
- [`GRID_LINE_WRAPPED`](/en/tmux/latest/reference/c-define-tmux-h-grid_line_wrapped/) (constant)
- [`LINE_SEL_LEFT_RIGHT`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-253364054321004071040107322151204133204166300136-line_sel_left_right/) (constant)
- [`window_copy_mode_data.lineflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-lineflag/) (attribute)
- [`session.options`](/en/tmux/latest/reference/c-struct-session-options/) (attribute)
- [`window_copy_mode_data.oy`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-oy/) (attribute)
- [`window_copy_mode_data.rectflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-rectflag/) (attribute)
- [`window_copy_cmd_state.s`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-s/) (attribute)
- [`screen_hsize`](/en/tmux/latest/reference/c-define-tmux-h-screen_hsize/) (constant)
- [`screen_size_x`](/en/tmux/latest/reference/c-define-tmux-h-screen_size_x/) (constant)
- [`SEL_WORD`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-006030303266304015365171123151216336006130054251-sel_word/) (constant)
- [`window_copy_mode_data.selflag`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-selflag/) (attribute)
- [`window_copy_mode_data.selrx`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-selrx/) (attribute)
- [`window_copy_mode_data.selry`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-selry/) (attribute)
- [`window_copy_mode_data.separators`](/en/tmux/latest/reference/c-struct-window_copy_mode_data-separators/) (attribute)
- [`WHITESPACE`](/en/tmux/latest/reference/c-define-tmux-h-whitespace/) (constant)
- [`window_copy_cmd_action`](/en/tmux/latest/reference/c-enum-window_copy_cmd_action/) (enum)
- [`WINDOW_COPY_CMD_REDRAW`](/en/tmux/latest/reference/c-enum-window_copy_cmd_action-window_copy_cmd_redraw/) (constant)
- [`window_copy_cmd_state`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state/) (struct)
- [`window_copy_cmd_state.wme`](/en/tmux/latest/reference/c-struct-window_copy_cmd_state-wme/) (attribute)
