Lines Matching refs:tp_col

52 	(d).tp_col = (s).tp_col;	\
149 vb->vb_mark_start.tp_col = vb->vb_mark_end.tp_col; in vthistory_addlines()
216 (vb->vb_cursor.tp_row == row) && (vb->vb_cursor.tp_col == col)) in vtbuf_iscursor()
221 if (vb->vb_mark_start.tp_col == vb->vb_mark_end.tp_col && in vtbuf_iscursor()
225 sc = vb->vb_mark_start.tp_col; in vtbuf_iscursor()
227 ec = vb->vb_mark_end.tp_col; in vtbuf_iscursor()
273 if (vb->vb_dirtyrect.tr_begin.tp_col > area->tr_begin.tp_col) in vtbuf_dirty()
274 vb->vb_dirtyrect.tr_begin.tp_col = area->tr_begin.tp_col; in vtbuf_dirty()
277 if (vb->vb_dirtyrect.tr_end.tp_col < area->tr_end.tp_col) in vtbuf_dirty()
278 vb->vb_dirtyrect.tr_end.tp_col = area->tr_end.tp_col; in vtbuf_dirty()
288 area.tr_end.tp_col = p->tp_col + 1; in vtbuf_dirty_cell()
297 vb->vb_dirtyrect.tr_end.tp_row = vb->vb_dirtyrect.tr_end.tp_col = 0; in vtbuf_make_undirty()
319 KASSERT(r->tr_begin.tp_col < vb->vb_scr_size.tp_col, in vtbuf_copy()
321 r->tr_begin.tp_col, vb->vb_scr_size.tp_col)); in vtbuf_copy()
326 KASSERT(r->tr_end.tp_col <= vb->vb_scr_size.tp_col, in vtbuf_copy()
328 r->tr_end.tp_col, vb->vb_scr_size.tp_col)); in vtbuf_copy()
333 KASSERT(p2->tp_col < vb->vb_scr_size.tp_col, in vtbuf_copy()
335 p2->tp_col, vb->vb_scr_size.tp_col)); in vtbuf_copy()
339 cols = r->tr_end.tp_col - r->tr_begin.tp_col; in vtbuf_copy()
340 if (r->tr_begin.tp_row > p2->tp_row && r->tr_begin.tp_col == 0 && in vtbuf_copy()
341 r->tr_end.tp_col == vb->vb_scr_size.tp_col && /* Full row. */ in vtbuf_copy()
350 &VTBUF_FIELD(vb, p2->tp_row + pr, p2->tp_col), in vtbuf_copy()
351 &VTBUF_FIELD(vb, p1->tp_row + pr, p1->tp_col), in vtbuf_copy()
357 &VTBUF_FIELD(vb, p2->tp_row + pr, p2->tp_col), in vtbuf_copy()
358 &VTBUF_FIELD(vb, p1->tp_row + pr, p1->tp_col), in vtbuf_copy()
364 area.tr_end.tp_col = MIN(p2->tp_col + cols, vb->vb_scr_size.tp_col); in vtbuf_copy()
377 for (pc = r->tr_begin.tp_col; pc < r->tr_end.tp_col; pc++) { in vtbuf_do_fill()
390 KASSERT(r->tr_begin.tp_col < vb->vb_scr_size.tp_col, in vtbuf_fill()
392 r->tr_begin.tp_col, vb->vb_scr_size.tp_col)); in vtbuf_fill()
397 KASSERT(r->tr_end.tp_col <= vb->vb_scr_size.tp_col, in vtbuf_fill()
399 r->tr_end.tp_col, vb->vb_scr_size.tp_col)); in vtbuf_fill()
413 vb->vb_rows[r] = &vb->vb_buffer[r * vb->vb_scr_size.tp_col]; in vtbuf_init_rows()
426 rect.tr_begin.tp_row = rect.tr_begin.tp_col = 0; in vtbuf_do_clearhistory()
427 rect.tr_end.tp_col = vb->vb_scr_size.tp_col; in vtbuf_do_clearhistory()
439 vb->vb_mark_start.tp_col = 0; in vtbuf_reset_scrollback()
441 vb->vb_mark_end.tp_col = 0; in vtbuf_reset_scrollback()
467 sz = vb->vb_history_size * p->tp_col * sizeof(term_char_t); in vtbuf_init()
494 p.tp_col = vb->vb_scr_size.tp_col; in vtbuf_sethistory_size()
514 bufsize = history_size * p->tp_col * sizeof(term_char_t); in vtbuf_grow()
525 w = vb->vb_scr_size.tp_col; in vtbuf_grow()
568 MIN(p->tp_col, w) * sizeof(term_char_t)); in vtbuf_grow()
575 for (c = MIN(p->tp_col, w); c < p->tp_col; c++) { in vtbuf_grow()
583 for (c = MIN(p->tp_col, w); c < p->tp_col; c++) { in vtbuf_grow()
625 MIN(p->tp_col, w) * sizeof(term_char_t)); in vtbuf_grow()
632 for (c = MIN(p->tp_col, w); c < p->tp_col; c++) { in vtbuf_grow()
646 if (vb->vb_cursor.tp_col > p->tp_col - 1) in vtbuf_grow()
651 vb->vb_cursor.tp_col = p->tp_col - 1; in vtbuf_grow()
672 KASSERT(p->tp_col < vb->vb_scr_size.tp_col, in vtbuf_putchar()
674 p->tp_col, vb->vb_scr_size.tp_col)); in vtbuf_putchar()
678 if (row[p->tp_col] != c) { in vtbuf_putchar()
679 row[p->tp_col] = c; in vtbuf_putchar()
704 if ((vb->vb_mark_start.tp_col != vb->vb_mark_end.tp_col) || in vtbuf_flush_mark()
709 area.tr_begin.tp_col = 0; in vtbuf_flush_mark()
712 area.tr_end.tp_col = vb->vb_scr_size.tp_col; in vtbuf_flush_mark()
729 vb->vb_mark_start.tp_col) > in vtbuf_get_marked_len()
731 vb->vb_mark_end.tp_col)) { in vtbuf_get_marked_len()
739 si = s.tp_row * vb->vb_scr_size.tp_col + s.tp_col; in vtbuf_get_marked_len()
740 ei = e.tp_row * vb->vb_scr_size.tp_col + e.tp_col; in vtbuf_get_marked_len()
779 vb->vb_mark_start.tp_col) > in vtbuf_extract_marked()
781 vb->vb_mark_end.tp_col)) { in vtbuf_extract_marked()
791 cs = (r == s.tp_row)?s.tp_col:0; in vtbuf_extract_marked()
792 ce = (r == e.tp_row)?e.tp_col:vb->vb_scr_size.tp_col; in vtbuf_extract_marked()
831 vb->vb_mark_end.tp_col = col; in vtbuf_set_mark()
836 vb->vb_mark_start.tp_col = col; in vtbuf_set_mark()
839 vb->vb_mark_end.tp_col = col; in vtbuf_set_mark()
849 vb->vb_mark_start.tp_col = i + 1; in vtbuf_set_mark()
855 vb->vb_mark_start.tp_col = 0; in vtbuf_set_mark()
856 for (i = col; i < vb->vb_scr_size.tp_col; i++) { in vtbuf_set_mark()
858 vb->vb_mark_end.tp_col = i; in vtbuf_set_mark()
863 if (i == vb->vb_scr_size.tp_col) in vtbuf_set_mark()
864 vb->vb_mark_end.tp_col = i; in vtbuf_set_mark()
866 if (vb->vb_mark_start.tp_col > vb->vb_mark_end.tp_col) in vtbuf_set_mark()
867 vb->vb_mark_start.tp_col = vb->vb_mark_end.tp_col; in vtbuf_set_mark()
871 vb->vb_mark_start.tp_col = 0; in vtbuf_set_mark()
872 vb->vb_mark_end.tp_col = vb->vb_scr_size.tp_col; in vtbuf_set_mark()