version 1.66, 2010/12/30 23:16:18 |
version 1.67, 2011/03/28 19:44:31 |
|
|
if (np == 0) |
if (np == 0) |
np = 1; |
np = 1; |
|
|
if (data->inputtype == WINDOW_COPY_JUMPFORWARD |
if (data->inputtype == WINDOW_COPY_JUMPFORWARD || |
|| data->inputtype == WINDOW_COPY_JUMPBACK) { |
data->inputtype == WINDOW_COPY_JUMPBACK) { |
/* Ignore keys with modifiers. */ |
/* Ignore keys with modifiers. */ |
if ((key & KEYC_MASK_MOD) == 0) { |
if ((key & KEYC_MASK_MOD) == 0) { |
data->jumpchar = key; |
data->jumpchar = key; |
|
|
data->inputtype = WINDOW_COPY_OFF; |
data->inputtype = WINDOW_COPY_OFF; |
window_copy_redraw_lines(wp, screen_size_y(s) - 1, 1); |
window_copy_redraw_lines(wp, screen_size_y(s) - 1, 1); |
return; |
return; |
} if (data->inputtype == WINDOW_COPY_NUMERICPREFIX) { |
} else if (data->inputtype == WINDOW_COPY_NUMERICPREFIX) { |
if (window_copy_key_numeric_prefix(wp, key) == 0) |
if (window_copy_key_numeric_prefix(wp, key) == 0) |
return; |
return; |
data->inputtype = WINDOW_COPY_OFF; |
data->inputtype = WINDOW_COPY_OFF; |
|
|
struct window_copy_mode_data *data = wp->modedata; |
struct window_copy_mode_data *data = wp->modedata; |
struct screen *back_s = data->backing; |
struct screen *back_s = data->backing; |
const struct grid_cell *gc; |
const struct grid_cell *gc; |
uint px, py, xx; |
u_int px, py, xx; |
|
|
px = data->cx + 1; |
px = data->cx + 1; |
py = screen_hsize(back_s) + data->cy - data->oy; |
py = screen_hsize(back_s) + data->cy - data->oy; |
|
|
struct window_copy_mode_data *data = wp->modedata; |
struct window_copy_mode_data *data = wp->modedata; |
struct screen *back_s = data->backing; |
struct screen *back_s = data->backing; |
const struct grid_cell *gc; |
const struct grid_cell *gc; |
uint px, py; |
u_int px, py; |
|
|
px = data->cx; |
px = data->cx; |
py = screen_hsize(back_s) + data->cy - data->oy; |
py = screen_hsize(back_s) + data->cy - data->oy; |