version 1.263, 2020/04/01 09:36:37 |
version 1.264, 2020/04/02 17:03:10 |
|
|
window_copy_cursor_end_of_line(wme); |
window_copy_cursor_end_of_line(wme); |
} |
} |
|
|
|
if (data->searchmark != NULL && !data->timeout) |
|
window_copy_search_marks(wme, NULL, data->searchregex); |
window_copy_update_selection(wme, 1, 0); |
window_copy_update_selection(wme, 1, 0); |
window_copy_redraw_screen(wme); |
window_copy_redraw_screen(wme); |
} |
} |
|
|
|
|
if (scroll_exit && data->oy == 0) |
if (scroll_exit && data->oy == 0) |
return (1); |
return (1); |
|
if (data->searchmark != NULL && !data->timeout) |
|
window_copy_search_marks(wme, NULL, data->searchregex); |
window_copy_update_selection(wme, 1, 0); |
window_copy_update_selection(wme, 1, 0); |
window_copy_redraw_screen(wme); |
window_copy_redraw_screen(wme); |
return (0); |
return (0); |
|
|
data->cx = window_copy_find_length(wme, data->cy); |
data->cx = window_copy_find_length(wme, data->cy); |
data->oy = 0; |
data->oy = 0; |
|
|
|
if (data->searchmark != NULL && !data->timeout) |
|
window_copy_search_marks(wme, NULL, data->searchregex); |
window_copy_update_selection(wme, 1, 0); |
window_copy_update_selection(wme, 1, 0); |
return (WINDOW_COPY_CMD_REDRAW); |
return (WINDOW_COPY_CMD_REDRAW); |
} |
} |
|
|
data->cx = 0; |
data->cx = 0; |
data->oy = screen_hsize(data->backing); |
data->oy = screen_hsize(data->backing); |
|
|
|
if (data->searchmark != NULL && !data->timeout) |
|
window_copy_search_marks(wme, NULL, data->searchregex); |
window_copy_update_selection(wme, 1, 0); |
window_copy_update_selection(wme, 1, 0); |
return (WINDOW_COPY_CMD_REDRAW); |
return (WINDOW_COPY_CMD_REDRAW); |
} |
} |
|
|
data->oy = gd->hsize - offset; |
data->oy = gd->hsize - offset; |
} |
} |
|
|
|
if (data->searchmark != NULL && !data->timeout) |
|
window_copy_search_marks(wme, NULL, data->searchregex); |
window_copy_update_selection(wme, 1, 0); |
window_copy_update_selection(wme, 1, 0); |
window_copy_redraw_screen(wme); |
window_copy_redraw_screen(wme); |
} |
} |
|
|
struct screen *s = data->backing, ss; |
struct screen *s = data->backing, ss; |
struct screen_write_ctx ctx; |
struct screen_write_ctx ctx; |
struct grid *gd = s->grid; |
struct grid *gd = s->grid; |
|
const struct grid_line *gl; |
int found, cis, which = -1; |
int found, cis, which = -1; |
int cflags = REG_EXTENDED; |
int cflags = REG_EXTENDED; |
u_int px, py, b, nfound = 0, width; |
u_int px, py, b, nfound = 0, width; |
|
|
} |
} |
} |
} |
time(&tstart); |
time(&tstart); |
for (py = 0; py < gd->hsize + gd->sy; py++) { |
py = gd->hsize - data->oy; |
|
if (py > 0) |
|
py--; |
|
for (; py > 0; py--) { |
|
gl = grid_peek_line(gd, py); |
|
if (~gl->flags & GRID_LINE_WRAPPED) |
|
break; |
|
} |
|
for (; py < gd->hsize - data->oy + gd->sy; py++) { |
px = 0; |
px = 0; |
for (;;) { |
for (;;) { |
if (regex) { |
if (regex) { |
|
|
return; |
return; |
data->oy -= ny; |
data->oy -= ny; |
|
|
|
if (data->searchmark != NULL && !data->timeout) |
|
window_copy_search_marks(wme, NULL, data->searchregex); |
window_copy_update_selection(wme, 0, 0); |
window_copy_update_selection(wme, 0, 0); |
|
|
screen_write_start(&ctx, wp, NULL); |
screen_write_start(&ctx, wp, NULL); |
|
|
return; |
return; |
data->oy += ny; |
data->oy += ny; |
|
|
|
if (data->searchmark != NULL && !data->timeout) |
|
window_copy_search_marks(wme, NULL, data->searchregex); |
window_copy_update_selection(wme, 0, 0); |
window_copy_update_selection(wme, 0, 0); |
|
|
screen_write_start(&ctx, wp, NULL); |
screen_write_start(&ctx, wp, NULL); |