version 1.91, 2013/03/25 11:43:33 |
version 1.92, 2013/07/05 14:41:36 |
|
|
window_copy_cursor_next_word_end(struct window_pane *wp, const char *separators) |
window_copy_cursor_next_word_end(struct window_pane *wp, const char *separators) |
{ |
{ |
struct window_copy_mode_data *data = wp->modedata; |
struct window_copy_mode_data *data = wp->modedata; |
|
struct options *oo = &wp->window->options; |
struct screen *back_s = data->backing; |
struct screen *back_s = data->backing; |
u_int px, py, xx, yy; |
u_int px, py, xx, yy; |
int expected = 1; |
int expected = 1; |
|
|
} |
} |
expected = !expected; |
expected = !expected; |
} while (expected == 0); |
} while (expected == 0); |
|
|
|
/* Back up to the end-of-word like vi. */ |
|
if (options_get_number(oo, "status-keys") == MODEKEY_VI && px != 0) |
|
px--; |
|
|
window_copy_update_cursor(wp, px, data->cy); |
window_copy_update_cursor(wp, px, data->cy); |
if (window_copy_update_selection(wp)) |
if (window_copy_update_selection(wp)) |