Lines Matching refs:col

47 static void screen_char_2(unsigned off, int row, int col);
238 compute_foldcolumn(win_T *wp, int col) in compute_foldcolumn() argument
244 if (fdc > wwidth - (col + wmw)) in compute_foldcolumn()
245 fdc = wwidth - (col + wmw); in compute_foldcolumn()
390 blocked_by_popup(int row, int col) in blocked_by_popup() argument
396 off = row * screen_Columns + col; in blocked_by_popup()
443 int col = 0; in screen_line() local
478 while (col <= endcol && ScreenLines[off_to] == ' ' in screen_line()
483 ++col; in screen_line()
485 if (col <= endcol) in screen_line()
486 screen_fill(row, row + 1, col + coloff, in screen_line()
489 col = endcol + 1; in screen_line()
490 off_to = LineOffset[row] + col + coloff; in screen_line()
491 off_from += col; in screen_line()
507 screen_char(off_to - 1, row, col + coloff - 1); in screen_line()
511 redraw_next = char_needs_redraw(off_from, off_to, endcol - col); in screen_line()
513 while (col < endcol) in screen_line()
515 if (has_mbyte && (col + 1 < endcol)) in screen_line()
522 off_to + CHAR_CELLS, endcol - col - CHAR_CELLS); in screen_line()
538 if (blocked_by_popup(row, col + coloff)) in screen_line()
566 windgoto(row, col + coloff); in screen_line()
576 if (col + coloff > 0 && ScreenAttrs[off_to - 1] != 0) in screen_line()
579 term_windgoto(row, col + coloff); in screen_line()
592 && col + 1 < endcol in screen_line()
601 && col + 2 < endcol in screen_line()
620 if (has_mbyte && col + char_cells == endcol in screen_line()
675 screen_char_2(off_to, row, col + coloff); in screen_line()
677 screen_char(off_to, row, col + coloff); in screen_line()
683 && col + coloff > 0) in screen_line()
699 col += CHAR_CELLS; in screen_line()
709 screen_char(off_to, row, col + coloff); in screen_line()
719 int startCol = col; in screen_line()
723 while (col < clear_width && ScreenLines[off_to] == ' ' in screen_line()
728 ++col; in screen_line()
730 if (col < clear_width) in screen_line()
740 if (gui.in_use && (col > startCol || !redraw_this)) in screen_line()
767 col + coloff - prev_cells); in screen_line()
770 col + coloff - prev_cells); in screen_line()
774 screen_fill(row, row + 1, col + coloff, clear_width + coloff, in screen_line()
776 off_to += clear_width - col; in screen_line()
777 col = clear_width; in screen_line()
789 if (coloff + col < Columns) in screen_line()
792 if (!blocked_by_popup(row, col + coloff)) in screen_line()
815 screen_char(off_to, row, col + coloff); in screen_line()
1224 int col = 0; in win_redr_custom() local
1279 col = ru_col - (Columns - wp->w_width); in win_redr_custom()
1280 if (col < (wp->w_width + 1) / 2) in win_redr_custom()
1281 col = (wp->w_width + 1) / 2; in win_redr_custom()
1282 maxwidth = wp->w_width - col; in win_redr_custom()
1307 col += wp->w_wincol; in win_redr_custom()
1353 screen_puts_len(p, len, row, col, curattr); in win_redr_custom()
1354 col += vim_strnsize(p, len); in win_redr_custom()
1374 screen_puts(p, row, col, curattr); in win_redr_custom()
1379 col = 0; in win_redr_custom()
1386 while (col < len) in win_redr_custom()
1387 TabPageIdxs[col++] = fillchar; in win_redr_custom()
1391 while (col < Columns) in win_redr_custom()
1392 TabPageIdxs[col++] = fillchar; in win_redr_custom()
1405 screen_putchar(int c, int row, int col, int attr) in screen_putchar() argument
1416 screen_puts(buf, row, col, attr); in screen_putchar()
1424 screen_getbytes(int row, int col, char_u *bytes, int *attrp) in screen_getbytes() argument
1429 if (ScreenLines != NULL && row < screen_Rows && col < screen_Columns) in screen_getbytes()
1431 off = LineOffset[row] + col; in screen_getbytes()
1482 int col, in screen_puts() argument
1485 screen_puts_len(text, -1, row, col, attr); in screen_puts()
1497 int col, in screen_puts_len() argument
1523 || col >= screen_Columns || col < 0) in screen_puts_len()
1525 off = LineOffset[row] + col; in screen_puts_len()
1529 if (has_mbyte && col > 0 && col < screen_Columns in screen_puts_len()
1533 && mb_fix_col(col, row) != col) in screen_puts_len()
1543 screen_char(off - 1, row, col - 1); in screen_puts_len()
1549 while (col < screen_Columns in screen_puts_len()
1596 if (col + mbyte_cells > screen_Columns) in screen_puts_len()
1625 && !blocked_by_popup(row, col) in screen_puts_len()
1701 screen_char(off, row, col); in screen_puts_len()
1707 screen_char_2(off, row, col); in screen_puts_len()
1712 screen_char(off, row, col); in screen_puts_len()
1715 screen_char(off, row, col); in screen_puts_len()
1720 col += mbyte_cells; in screen_puts_len()
1732 ++col; in screen_puts_len()
1739 if (force_redraw_next && col < screen_Columns) in screen_puts_len()
1742 screen_char_2(off, row, col); in screen_puts_len()
1744 screen_char(off, row, col); in screen_puts_len()
2131 screen_char(unsigned off, int row, int col) in screen_char() argument
2137 if (row >= screen_Rows || col >= screen_Columns) in screen_char()
2142 if (pum_under_menu(row, col, TRUE) in screen_char()
2149 if (blocked_by_popup(row, col)) in screen_char()
2157 && row == screen_Rows - 1 && col == screen_Columns - 1 in screen_char()
2178 windgoto(row, col); in screen_char()
2198 term_windgoto(row, col); in screen_char()
2230 screen_char_2(unsigned off, int row, int col) in screen_char_2() argument
2238 if (row == screen_Rows - 1 && col >= screen_Columns - 2) in screen_char_2()
2246 screen_char(off, row, col); in screen_char_2()
2258 int col, in screen_draw_rectangle() argument
2277 for (c = col; c < col + width; ++c) in screen_draw_rectangle()
2301 int col; in redraw_block() local
2310 col = 0; in redraw_block()
2315 col = wp->w_wincol; in redraw_block()
2318 screen_draw_rectangle(row, col, end - row, width, FALSE); in redraw_block()
2346 int col; in screen_fill() local
2405 col = start_col; in screen_fill()
2407 ++col; in screen_fill()
2409 off = LineOffset[row] + col; in screen_fill()
2423 col = off - LineOffset[row]; in screen_fill()
2425 term_windgoto(row, col);// clear rest of this screen line in screen_fill()
2428 col = end_col - col; in screen_fill()
2429 while (col--) // clear chars in ScreenLines in screen_fill()
2440 for (col = start_col; col < end_col; ++col) in screen_fill()
2452 && !blocked_by_popup(row, col) in screen_fill()
2494 screen_char(off, row, col); in screen_fill()
2497 if (col == start_col) in screen_fill()
3101 windgoto(int row, int col) in windgoto() argument
3123 if (col != screen_cur_col || row != screen_cur_row) in windgoto()
3130 if (col >= screen_Columns) in windgoto()
3131 col = screen_Columns - 1; in windgoto()
3161 if (row == screen_cur_row && col < screen_cur_col) in windgoto()
3169 cost = (screen_cur_col - col) * (int)STRLEN(bs); in windgoto()
3172 if (col + 1 < cost) // using CR is less characters in windgoto()
3181 wouldbe_col = col; in windgoto()
3219 i = col - wouldbe_col; in windgoto()
3248 for (i = wouldbe_col; i < col; ++i) in windgoto()
3266 while (screen_cur_col > col) in windgoto()
3291 i = col - screen_cur_col; in windgoto()
3331 if (row == screen_cur_row && (col > screen_cur_col) in windgoto()
3333 term_cursor_right(col - screen_cur_col); in windgoto()
3335 term_windgoto(row, col); in windgoto()
3338 screen_cur_col = col; in windgoto()
4386 int col = 0; in draw_tabline() local
4454 for (tp = first_tabpage; tp != NULL && col < Columns - 4; in draw_tabline()
4457 scol = col; in draw_tabline()
4461 if (use_sep_chars && col > 0) in draw_tabline()
4462 screen_putchar('|', 0, col++, attr); in draw_tabline()
4467 screen_putchar(' ', 0, col++, attr); in draw_tabline()
4490 if (col + len >= Columns - 3) in draw_tabline()
4492 screen_puts_len(NameBuff, len, 0, col, in draw_tabline()
4499 col += len; in draw_tabline()
4502 screen_puts_len((char_u *)"+", 1, 0, col++, attr); in draw_tabline()
4503 screen_putchar(' ', 0, col++, attr); in draw_tabline()
4506 room = scol - col + tabwidth - 1; in draw_tabline()
4525 if (len > Columns - col - 1) in draw_tabline()
4526 len = Columns - col - 1; in draw_tabline()
4528 screen_puts_len(p, (int)STRLEN(p), 0, col, attr); in draw_tabline()
4529 col += len; in draw_tabline()
4531 screen_putchar(' ', 0, col++, attr); in draw_tabline()
4536 while (scol < col) in draw_tabline()
4544 screen_fill(0, 1, col, (int)Columns, c, c, attr_fill); in draw_tabline()