# grid_reader_cursor_previous_word

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-reader.c#L283
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-grid_reader_cursor_previous_word/

```c
void grid_reader_cursor_previous_word(struct grid_reader *gr, const char *separators, int already, int stop_at_eol)
```

## Parameters

- `gr` (`struct grid_reader *`)
- `separators` (`const char *`)
- `already` (`int`)
- `stop_at_eol` (`int`)

## Called by

- [`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#L6233)
- [`window_copy_cursor_previous_word_pos`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cursor_previous_word_pos/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6204)

## Calls

- [`grid_reader_cursor_end_of_line`](/en/tmux/3.7c/reference/c-function-grid_reader_cursor_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-reader.c#L302)
- [`grid_reader_cursor_up`](/en/tmux/3.7c/reference/c-function-grid_reader_cursor_up/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-reader.c#L301)
- [`grid_reader_in_set`](/en/tmux/3.7c/reference/c-function-grid_reader_in_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/grid-reader.c#L308)

## Other function references

- [`grid_get_line`](/en/tmux/3.7c/reference/c-function-grid_get_line/) (function)

## Referenced declarations

- [`grid_reader.cx`](/en/tmux/3.7c/reference/c-struct-grid_reader-cx/) (attribute)
- [`grid_reader.cy`](/en/tmux/3.7c/reference/c-struct-grid_reader-cy/) (attribute)
- [`grid_line.flags`](/en/tmux/3.7c/reference/c-struct-grid_line-flags/) (attribute)
- [`grid_reader.gd`](/en/tmux/3.7c/reference/c-struct-grid_reader-gd/) (attribute)
- [`GRID_LINE_WRAPPED`](/en/tmux/3.7c/reference/c-define-tmux-h-grid_line_wrapped/) (constant)
- [`grid_reader`](/en/tmux/3.7c/reference/c-struct-grid_reader/) (struct)
- [`WHITESPACE`](/en/tmux/3.7c/reference/c-define-tmux-h-whitespace/) (constant)
