Lines Matching refs:row
47 static void screen_char_2(unsigned off, int row, int col);
51 static int win_do_lines(win_T *wp, int row, int line_count, int mayclear, int del, int clear_attr);
144 int row, in screen_fill_end() argument
155 screen_fill(W_WINROW(wp) + row, W_WINROW(wp) + endrow, in screen_fill_end()
161 screen_fill(W_WINROW(wp) + row, W_WINROW(wp) + endrow, in screen_fill_end()
178 int row, in win_draw_end() argument
196 row, endrow, hl_combine_attr(wcr_attr, HL_ATTR(HLF_FC))); in win_draw_end()
202 row, endrow, hl_combine_attr(wcr_attr, HL_ATTR(HLF_SC))); in win_draw_end()
208 row, endrow, hl_combine_attr(wcr_attr, HL_ATTR(HLF_N))); in win_draw_end()
214 screen_fill(W_WINROW(wp) + row, W_WINROW(wp) + endrow, in win_draw_end()
217 screen_fill(W_WINROW(wp) + row, W_WINROW(wp) + endrow, in win_draw_end()
224 screen_fill(W_WINROW(wp) + row, W_WINROW(wp) + endrow, in win_draw_end()
229 set_empty_rows(wp, row); in win_draw_end()
390 blocked_by_popup(int row, int col) in blocked_by_popup() argument
396 off = row * screen_Columns + col; in blocked_by_popup()
433 int row, in screen_line() argument
458 if (row >= Rows) in screen_line()
459 row = Rows - 1; in screen_line()
464 clip_may_clear_selection(row, row); in screen_line()
468 off_to = LineOffset[row] + coloff; in screen_line()
470 max_off_to = LineOffset[row] + screen_Columns; in screen_line()
486 screen_fill(row, row + 1, col + coloff, in screen_line()
490 off_to = LineOffset[row] + col + coloff; in screen_line()
507 screen_char(off_to - 1, row, col + coloff - 1); in screen_line()
538 if (blocked_by_popup(row, col + coloff)) in screen_line()
566 windgoto(row, col + coloff); in screen_line()
579 term_windgoto(row, col + coloff); 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()
709 screen_char(off_to, row, col + coloff); in screen_line()
755 unsigned off = LineOffset[row]; in screen_line()
756 unsigned max_off = LineOffset[row] + screen_Columns; in screen_line()
766 screen_char_2(off_to - prev_cells, row, in screen_line()
769 screen_char(off_to - prev_cells, row, in screen_line()
774 screen_fill(row, row + 1, col + coloff, clear_width + coloff, 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()
820 LineWraps[row] = FALSE; in screen_line()
848 draw_vsep_win(win_T *wp, int row) in draw_vsep_win() argument
857 screen_fill(W_WINROW(wp) + row, W_WINROW(wp) + wp->w_height, in draw_vsep_win()
933 int row; in win_redr_status_matches() local
1080 row = cmdline_row - 1; in win_redr_status_matches()
1081 if (row >= 0) in win_redr_status_matches()
1097 ++row; in win_redr_status_matches()
1118 screen_puts(buf, row, 0, attr); in win_redr_status_matches()
1122 screen_puts(selstart, row, selstart_col, HL_ATTR(HLF_WM)); in win_redr_status_matches()
1125 screen_fill(row, row + 1, clen, (int)Columns, fillchar, fillchar, attr); in win_redr_status_matches()
1223 int row; in win_redr_custom() local
1251 row = 0; in win_redr_custom()
1261 row = statusline_row(wp); in win_redr_custom()
1285 row = Rows - 1; in win_redr_custom()
1353 screen_puts_len(p, len, row, col, curattr); in win_redr_custom()
1374 screen_puts(p, row, col, curattr); 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()
1481 int row, in screen_puts() argument
1485 screen_puts_len(text, -1, row, col, attr); in screen_puts()
1496 int row, in screen_puts_len() argument
1522 || row >= screen_Rows || row < 0 in screen_puts_len()
1525 off = LineOffset[row] + col; 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()
1548 max_off = LineOffset[row] + 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()
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()
2257 int row, in screen_draw_rectangle() argument
2273 for (r = row; r < row + height; ++r) in screen_draw_rectangle()
2299 redraw_block(int row, int end, win_T *wp) in redraw_block() argument
2305 clip_may_clear_selection(row, end - 1); in redraw_block()
2318 screen_draw_rectangle(row, col, end - row, width, FALSE); in redraw_block()
2345 int row; in screen_fill() local
2371 for (row = start_row; row < end_row; ++row) in screen_fill()
2383 if (start_col > 0 && mb_fix_col(start_col, row) != start_col) in screen_fill()
2384 screen_puts_len((char_u *)" ", 1, row, start_col - 1, 0); in screen_fill()
2385 if (end_col < screen_Columns && mb_fix_col(end_col, row) != end_col) in screen_fill()
2386 screen_puts_len((char_u *)" ", 1, row, end_col, 0); in screen_fill()
2409 off = LineOffset[row] + col; in screen_fill()
2410 end_off = LineOffset[row] + end_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()
2438 off = LineOffset[row] + start_col; in screen_fill()
2452 && !blocked_by_popup(row, col) in screen_fill()
2494 screen_char(off, row, col); in screen_fill()
2505 LineWraps[row] = FALSE; in screen_fill()
2506 if (row == Rows - 1) // overwritten the command line in screen_fill()
3101 windgoto(int row, int col) in windgoto() argument
3123 if (col != screen_cur_col || row != screen_cur_row) in windgoto()
3126 if (row < 0) // window without text lines? in windgoto()
3127 row = 0; in windgoto()
3128 if (row >= screen_Rows) in windgoto()
3129 row = screen_Rows - 1; in windgoto()
3153 if (row >= screen_cur_row && screen_cur_col < Columns) in windgoto()
3161 if (row == screen_cur_row && col < screen_cur_col) in windgoto()
3193 else if (row > screen_cur_row) in windgoto()
3197 cost = (row - screen_cur_row) * 2; // CR LF in windgoto()
3228 p = ScreenAttrs + LineOffset[row] + wouldbe_col; in windgoto()
3249 if (ScreenLinesUC[LineOffset[row] + i] != 0) in windgoto()
3283 while (screen_cur_row < row) in windgoto()
3308 off = LineOffset[row] + screen_cur_col; in windgoto()
3331 if (row == screen_cur_row && (col > screen_cur_col) in windgoto()
3335 term_windgoto(row, col); in windgoto()
3337 screen_cur_row = row; in windgoto()
3386 int row, in win_ins_lines() argument
3402 if (line_count > wp->w_height - row) in win_ins_lines()
3403 line_count = wp->w_height - row; in win_ins_lines()
3405 retval = win_do_lines(wp, row, line_count, mayclear, FALSE, 0); in win_ins_lines()
3440 if (screen_ins_lines(0, W_WINROW(wp) + row, line_count, (int)Rows, 0, NULL) in win_ins_lines()
3465 int row, in win_del_lines() argument
3476 if (line_count > wp->w_height - row) in win_del_lines()
3477 line_count = wp->w_height - row; in win_del_lines()
3479 retval = win_do_lines(wp, row, line_count, mayclear, TRUE, clear_attr); in win_del_lines()
3483 if (screen_del_lines(0, W_WINROW(wp) + row, line_count, in win_del_lines()
3517 int row, in win_do_lines() argument
3548 if (row + line_count >= wp->w_height) in win_do_lines()
3550 screen_fill(W_WINROW(wp) + row, W_WINROW(wp) + wp->w_height, in win_do_lines()
3576 scroll_region_set(wp, row); in win_do_lines()
3578 retval = screen_del_lines(W_WINROW(wp) + row, 0, line_count, in win_do_lines()
3579 wp->w_height - row, FALSE, clear_attr, wp); in win_do_lines()
3581 retval = screen_ins_lines(W_WINROW(wp) + row, 0, line_count, in win_do_lines()
3582 wp->w_height - row, clear_attr, wp); in win_do_lines()
3643 int row, in screen_ins_lines() argument
3704 result_empty = (row + line_count >= end); in screen_ins_lines()
3719 else if (*T_SR != NUL && row == 0 && (*T_DA == NUL || can_ce)) in screen_ins_lines()
3730 return screen_del_lines(off, row, line_count, end, FALSE, 0, wp); in screen_ins_lines()
3743 if (off + row > 0 || (wp != NULL && wp->w_width != Columns)) in screen_ins_lines()
3756 gui_dont_update_cursor(row + off <= gui.cursor_row); in screen_ins_lines()
3763 cursor_row = row; in screen_ins_lines()
3765 cursor_row = row + off; in screen_ins_lines()
3771 row += off; in screen_ins_lines()
3779 while ((j -= line_count) >= row) in screen_ins_lines()
3793 while ((j -= line_count) >= row) in screen_ins_lines()
3818 redraw_block(row, end, wp); in screen_ins_lines()
3873 int row, in screen_del_lines() argument
3910 result_empty = row + line_count >= end; in screen_del_lines()
3934 else if (row == 0 && ( in screen_del_lines()
3957 if (off + row > 0 || (wp != NULL && wp->w_width != Columns)) in screen_del_lines()
3970 gui_dont_update_cursor(gui.cursor_row >= row + off in screen_del_lines()
3979 cursor_row = row; in screen_del_lines()
3984 cursor_row = row + off; in screen_del_lines()
3992 row += off; in screen_del_lines()
3999 j = row + i; in screen_del_lines()
4013 j = row + i; in screen_del_lines()
4040 redraw_block(row, end, wp); in screen_del_lines()