# window_copy_cursor_limit

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

```c
static u_int window_copy_cursor_limit(struct window_mode_entry *, u_int, int)
```

## Parameters

- `wme` (`struct window_mode_entry *`)
- `py` (`u_int`)
- `allow_onemore` (`int`)

## Called by

- [`window_copy_clear_selection`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_clear_selection/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5678)
- [`window_copy_cmd_search_backward_incremental`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_search_backward_incremental/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2699)
- [`window_copy_cmd_search_forward_incremental`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_search_forward_incremental/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L2756)
- [`window_copy_cursor_end_of_line`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cursor_end_of_line/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5774)
- [`window_copy_other_end`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_other_end/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5826)
- [`window_copy_rectangle_set`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_rectangle_set/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L6413)
- [`window_copy_update_cursor`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_update_cursor/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-copy.c#L5182)

## Calls

- [`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#L5707)

## Other function references

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

## Referenced by

- [`window_copy_cmd_history_bottom`](/en/tmux/3.7c/reference/c-function-window-copy-c-window_copy_cmd_history_bottom/) (function)

## Referenced declarations

- [`MODEKEY_VI`](/en/tmux/3.7c/reference/c-define-tmux-h-modekey_vi/) (constant)
- [`window.options`](/en/tmux/3.7c/reference/c-struct-window-options/) (attribute)
- [`window_pane.window`](/en/tmux/3.7c/reference/c-struct-window_pane-window/) (attribute)
- [`window_mode_entry`](/en/tmux/3.7c/reference/c-struct-window_mode_entry/) (struct)
- [`window_mode_entry.wp`](/en/tmux/3.7c/reference/c-struct-window_mode_entry-wp/) (attribute)
