version 1.121, 2014/12/15 10:02:55 |
version 1.122, 2015/01/15 13:35:13 |
|
|
if (data->inputtype == WINDOW_COPY_JUMPFORWARD) { |
if (data->inputtype == WINDOW_COPY_JUMPFORWARD) { |
for (; np != 0; np--) |
for (; np != 0; np--) |
window_copy_cursor_jump(wp); |
window_copy_cursor_jump(wp); |
} else if (data->inputtype == WINDOW_COPY_JUMPBACK) { |
} |
|
if (data->inputtype == WINDOW_COPY_JUMPBACK) { |
for (; np != 0; np--) |
for (; np != 0; np--) |
window_copy_cursor_jump_back(wp); |
window_copy_cursor_jump_back(wp); |
} else if (data->inputtype == WINDOW_COPY_JUMPTOFORWARD) { |
} |
|
if (data->inputtype == WINDOW_COPY_JUMPTOFORWARD) { |
for (; np != 0; np--) |
for (; np != 0; np--) |
window_copy_cursor_jump_to(wp); |
window_copy_cursor_jump_to(wp); |
} else if (data->inputtype == WINDOW_COPY_JUMPTOBACK) { |
} |
|
if (data->inputtype == WINDOW_COPY_JUMPTOBACK) { |
for (; np != 0; np--) |
for (; np != 0; np--) |
window_copy_cursor_jump_to_back(wp); |
window_copy_cursor_jump_to_back(wp); |
} |
} |
|
|
{ |
{ |
struct window_copy_mode_data *data = wp->modedata; |
struct window_copy_mode_data *data = wp->modedata; |
struct screen *s = &data->screen; |
struct screen *s = &data->screen; |
u_int selx, sely, cx, cy, yy; |
u_int selx, sely, cx, cy, yy, hsize; |
|
|
if (!s->sel.flag && s->sel.lineflag == LINE_SEL_NONE) |
if (!s->sel.flag && s->sel.lineflag == LINE_SEL_NONE) |
return; |
return; |
|
|
data->sely = yy; |
data->sely = yy; |
data->cx = selx; |
data->cx = selx; |
|
|
if (sely < screen_hsize(data->backing) - data->oy) { |
hsize = screen_hsize(data->backing); |
data->oy = screen_hsize(data->backing) - sely; |
if (sely < hsize - data->oy) { |
|
data->oy = hsize - sely; |
data->cy = 0; |
data->cy = 0; |
} else if (sely > screen_hsize(data->backing) - data->oy + screen_size_y(s)) { |
} else if (sely > hsize - data->oy + screen_size_y(s)) { |
data->oy = screen_hsize(data->backing) - sely + screen_size_y(s) - 1; |
data->oy = hsize - sely + screen_size_y(s) - 1; |
data->cy = screen_size_y(s) - 1; |
data->cy = screen_size_y(s) - 1; |
|
|
} else |
} else |
data->cy = cy + sely - yy; |
data->cy = cy + sely - yy; |
|
|