Lines Matching refs:grid
61 static int window_copy_search_compare(struct grid *, u_int, u_int,
62 struct grid *, u_int, int);
63 static int window_copy_search_lr(struct grid *, struct grid *, u_int *,
65 static int window_copy_search_rl(struct grid *, struct grid *, u_int *,
67 static int window_copy_last_regex(struct grid *, u_int, u_int, u_int,
72 static char *window_copy_stringify(struct grid *, u_int, u_int, u_int,
74 static void window_copy_cstrtocellpos(struct grid *, u_int, u_int *,
80 static void window_copy_search_back_overlap(struct grid *, regex_t *,
83 struct grid *, struct grid *, u_int, u_int, u_int, int, int,
225 * In either case, the full content of the copy-mode grid is pointed at by the
354 gl = grid_peek_line(src->grid, sy - 1);
366 * Ensure history is on for the backing grid so lines are not deleted
369 dst->grid->flags |= GRID_HISTORY;
370 grid_duplicate_lines(dst->grid, 0, src->grid, 0, sy);
372 dst->grid->sy = sy - screen_hsize(src);
373 dst->grid->hsize = screen_hsize(src);
374 dst->grid->hscrolled = src->grid->hscrolled;
375 if (src->cy > dst->grid->sy - 1) {
377 dst->cy = dst->grid->sy - 1;
391 grid_wrap_position(dst->grid, *cx, *cy, &wx, &wy);
395 grid_unwrap_position(dst->grid, cx, cy, wx, wy);
857 struct grid *gd = data->backing->grid;
867 struct grid *gd = data->screen.grid;
877 struct grid *gd = data->screen.grid;
888 struct grid *gd = data->screen.grid;
931 gl = grid_get_line(data->backing->grid, hsize - data->oy);
1008 struct grid *gd = data->backing->grid;
1719 grid_get_cell(s->grid, px, py, &gc);
1760 grid_get_cell(s->grid, px, py, &gc);
1807 grid_get_cell(s->grid, px, py, &gc);
1828 grid_get_cell(s->grid, px, py, &gc);
1852 gl = grid_get_line(s->grid, py);
1855 if (gl->cellsize > s->grid->sx)
1881 grid_get_cell(s->grid, px, py, &gc);
2228 if (grid_get_line(data->backing->grid, nexty)->flags &
3216 struct grid *gd = data->backing->grid;
3246 window_copy_search_compare(struct grid *gd, u_int px, u_int py,
3247 struct grid *sgd, u_int spx, int cis)
3270 window_copy_search_lr(struct grid *gd, struct grid *sgd, u_int *ppx, u_int py,
3292 /* We have run off the end of the grid. */
3314 window_copy_search_rl(struct grid *gd,
3315 struct grid *sgd, u_int *ppx, u_int py, u_int first, u_int last, int cis)
3336 /* We have run off the end of the grid. */
3358 window_copy_search_lr_regex(struct grid *gd, u_int *ppx, u_int *psx, u_int py,
3425 window_copy_search_rl_regex(struct grid *gd, u_int *ppx, u_int *psx, u_int py,
3515 window_copy_last_regex(struct grid *gd, u_int py, u_int first, u_int last,
3566 window_copy_stringify(struct grid *gd, u_int py, u_int first, u_int last,
3603 /* Map start of C string containing UTF-8 data to grid cell position. */
3605 window_copy_cstrtocellpos(struct grid *gd, u_int ncells, u_int *ppx, u_int *ppy,
3742 window_copy_search_back_overlap(struct grid *gd, regex_t *preg, u_int *ppx,
3782 * up, down otherwise. If wrap then go to begin/end of grid and try again if
3786 window_copy_search_jump(struct window_mode_entry *wme, struct grid *gd,
3787 struct grid *sgd, u_int fx, u_int fy, u_int endline, int cis, int wrap,
3869 /* Stop if not wrapping and at the end of the grid. */
3891 struct grid *gd = s->grid;
3959 found = window_copy_search_jump(wme, gd, ss.grid, fx, fy, endline, cis,
3977 window_copy_search_jump(wme, gd, ss.grid, fx,
4030 struct grid *gd = data->backing->grid;
4046 struct grid *gd = s->grid;
4066 struct grid *gd = data->backing->grid;
4100 struct grid *gd = s->grid;
4127 sbuf = window_copy_stringify(ssp->grid, 0, 0, ssp->grid->sx,
4164 found = window_copy_search_lr(gd, ssp->grid,
4264 struct grid *gd = data->backing->grid;
4282 struct grid *gd = data->backing->grid;
4409 struct grid *gd = data->backing->grid;
4504 struct grid *gd = data->backing->grid;
4521 /* Last grid line in data coordinates. */
4904 if (~grid_get_line(data->backing->grid, ey)->flags &
5028 struct grid *gd = data->backing->grid;
5110 return (grid_in_set(data->backing->grid, px, py, set));
5118 return (grid_line_length(data->backing->grid, py));
5134 grid_reader_start(&gr, back_s->grid, px, py);
5153 grid_reader_start(&gr, back_s->grid, px, py);
5172 grid_reader_start(&gr, back_s->grid, px, py);
5246 grid_reader_start(&gr, back_s->grid, px, py);
5265 grid_reader_start(&gr, back_s->grid, px, py);
5425 grid_reader_start(&gr, back_s->grid, px, py);
5446 grid_reader_start(&gr, back_s->grid, px, py);
5468 grid_reader_start(&gr, back_s->grid, px, py);
5490 grid_reader_start(&gr, back_s->grid, px, py);
5515 grid_reader_start(&gr, back_s->grid, px, py);
5538 grid_reader_start(&gr, back_s->grid, px, py);
5568 grid_reader_start(&gr, back_s->grid, px, py);
5595 grid_reader_start(&gr, back_s->grid, px, py);
5624 grid_reader_start(&gr, back_s->grid, px, py);
5636 struct grid *gd = s->grid;