| /vim-8.2.3635/src/testdir/ |
| H A D | mouse.vim | 46 func NettermEscapeCode(row, col) argument 50 func MouseLeftClickCode(row, col) argument 60 func MouseLeftClick(row, col) argument 72 func MouseMiddleClick(row, col) argument 84 func MouseRightClick(row, col) argument 134 func MouseLeftRelease(row, col) argument 170 func MouseLeftDrag(row, col) argument 178 func MouseWheelUp(row, col) argument 186 func MouseWheelDown(row, col) argument 194 func MouseWheelLeft(row, col) argument [all …]
|
| H A D | test_textprop.vim | 150 " Starting at line 5 col 1 this should find the prop at line 5 col 4. 156 " 5 col 4. 191 let col = 1 200 let col = result.col 206 let col = 4 215 let col = result.col 527 let expected[0].col = 1 742 let expect.col += 3 747 let expect.col = 6 752 let expect.col = 2 [all …]
|
| H A D | test_listener.vim | 27 call assert_equal([{'lnum': 1, 'end': 2, 'col': 1, 'added': 0}], s:list) 33 call assert_equal([{'lnum': 3, 'end': 3, 'col': 1, 'added': 1}], s:list) 68 call assert_equal([{'lnum': 3, 'end': 3, 'col': 1, 'added': 1}, 69 \ {'lnum': 1, 'end': 2, 'col': 1, 'added': 0}], s:list) 125 call assert_equal([{'lnum': 3, 'end': 3, 'col': 1, 'added': 1}, 126 \ {'lnum': 3, 'end': 4, 'col': 1, 'added': 0}], s:list) 179 call assert_equal([{'lnum': 1, 'end': 2, 'col': 1, 'added': 0}, 180 \ {'lnum': 3, 'end': 4, 'col': 1, 'added': 0}], s:list) 193 call assert_equal([{'lnum': 3, 'end': 3, 'col': 1, 'added': 1}, 194 \ {'lnum': 4, 'end': 5, 'col': 1, 'added': -1}, [all …]
|
| /vim-8.2.3635/src/libvterm/src/ |
| H A D | screen.c | 95 for(col = 0; col < cols; col++) { in alloc_buffer() 188 for(col = 1; col < info->width; col++) in putglyph() 214 for(pos.col = 0; pos.col < screen->cols; pos.col++) in sb_pushline_from_row() 285 for(col = rect.start_col; col < rect.end_col; col++) { in erase_internal() 513 for(col = 0; col < old_cols && col < new_cols; col++) in resize_buffer() 548 …for(pos.col = 0; pos.col < old_cols && pos.col < new_cols; pos.col += screen->sb_buffer[pos.col].w… in resize_buffer() 589 for(col = 0; col < new_cols; col++) in resize_buffer() 652 for(col = 0; col < screen->cols; col++) { in setlineinfo() 783 for(col = rect.start_col; col < rect.end_col; col++) { in _get_chars() 999 for(col = pos.col - 1; col >= extent->start_col; col--) in vterm_screen_get_attrs_extent() [all …]
|
| H A D | state.c | 474 leadpos.col -= (leadpos.col >= 2 ? 2 : 0); in on_control() 681 for(pos.col = 0; pos.col < ROWWIDTH(state, pos.row); pos.col++) in on_escape() 1092 state->pos.col = col-1; in on_csi() 1262 state->pos.col = col-1; in on_csi() 1275 col = state->pos.col + count; in on_csi() 1277 while (state->pos.col < col) { in on_csi() 1321 state->pos.col = col-1; in on_csi() 1338 for(col = 0; col < state->cols; col++) in on_csi() 1781 for(col = 0; col < state->cols && col < cols; col++) { in on_resize() 1789 for( ; col < cols; col++) { in on_resize() [all …]
|
| H A D | pen.c | 48 col, in lookup_default_colour_ansi() 50 col->index = (uint8_t)idx; in lookup_default_colour_ansi() 57 *col = state->colors[index]; in lookup_colour_ansi() 164 int col; in vterm_state_newpen() local 171 for(col = 0; col < 16; col++) in vterm_state_newpen() 172 lookup_default_colour_ansi(col, &state->colors[col]); in vterm_state_newpen() 214 col->red = red; in vterm_color_rgb() 215 col->green = green; in vterm_color_rgb() 216 col->blue = blue; in vterm_color_rgb() 222 col->index = idx; in vterm_color_indexed() [all …]
|
| /vim-8.2.3635/src/ |
| H A D | ops.c | 1295 oap->end.col - pos.col + 1); in op_tilde() 2404 pos.col += oap->start.col; in op_addsub() 2514 col = pos->col; in do_addsub() 2553 col = pos->col; in do_addsub() 2590 col = pos->col; in do_addsub() 2595 col += mb_ptr2len(ptr + col); in do_addsub() 2623 if (col > pos->col && ptr[col - 1] == '-' in do_addsub() 2677 curwin->w_cursor.col = col; in do_addsub() 2684 curwin->w_cursor.col = col; in do_addsub() 2691 if (col > 0 && ptr[col - 1] == '-' in do_addsub() [all …]
|
| H A D | textformat.c | 89 colnr_T col; in internal_format() local 137 || curwin->w_cursor.col >= Insstart.col) in internal_format() 179 col = curwin->w_cursor.col; in internal_format() 185 curwin->w_cursor.col = col; in internal_format() 206 col = curwin->w_cursor.col; in internal_format() 222 curwin->w_cursor.col = col; in internal_format() 229 col = curwin->w_cursor.col; in internal_format() 240 curwin->w_cursor.col = col; in internal_format() 273 col = curwin->w_cursor.col; in internal_format() 292 curwin->w_cursor.col = col; in internal_format() [all …]
|
| H A D | beval.c | 74 col = vcol2col(wp, lnum, col); in find_word_under_cursor() 75 scol = col; in find_word_under_cursor() 80 ? col >= (int)spos->col in find_word_under_cursor() 83 ? col <= (int)epos->col in find_word_under_cursor() 89 if (spos->lnum != epos->lnum || spos->col == epos->col) in find_word_under_cursor() 93 len = epos->col - spos->col; in find_word_under_cursor() 98 col = spos->col; in find_word_under_cursor() 99 scol = col; in find_word_under_cursor() 114 scol = col; in find_word_under_cursor() 122 *colp = col; in find_word_under_cursor() [all …]
|
| H A D | search.c | 996 && matchpos.col == endpos.col)) in searchit() 1001 pos->col = endpos.col; in searchit() 1024 end_pos->col = matchpos.col; in searchit() 1030 pos->col = matchpos.col; in searchit() 1034 end_pos->col = endpos.col; in searchit() 1813 col = curwin->w_cursor.col; in searchc() 1824 col += (*mb_ptr2len)(p + col); in searchc() 1872 curwin->w_cursor.col = col; in searchc() 2244 for (col = pos.col; check_prevcol(linep, col, '\\', &col);) in findmatchlimit() 2609 for (col = pos.col - 1; col >= 0; --col) in findmatchlimit() [all …]
|
| H A D | change.c | 46 msg_col = col; in change_warning() 200 colnr_T col, in may_record_change() argument 495 curbuf->b_last_change.col = col; in changed_common() 517 add = (p->col + cols < col || col + cols < p->col); in changed_common() 1032 col = curwin->w_cursor.col; in ins_char_bytes() 1164 col = curwin->w_cursor.col; in ins_str() 1174 mch_memmove(newp + col + newlen, oldp + col, (size_t)(oldlen - col + 1)); in ins_str() 1239 colnr_T col = curwin->w_cursor.col; in del_bytes() local 1274 n = col; in del_bytes() 1277 col = n; in del_bytes() [all …]
|
| H A D | clipboard.c | 572 col -= dbcs_screen_head_off(p, p + col); in clip_get_word_boundaries() 574 --col; in clip_get_word_boundaries() 643 col = check_col(col); in clip_start_selection() 644 col = mb_fix_col(col, row); in clip_start_selection() 647 cb->start.col = col; in clip_start_selection() 753 cb->start.col, cb->end.lnum, cb->end.col); in clip_process_selection() 772 col = check_col(col); in clip_process_selection() 773 col = mb_fix_col(col, row); in clip_process_selection() 793 && cb->end.col - col > col - cb->start.col)) in clip_process_selection() 893 cb->prev.col = col; in clip_process_selection() [all …]
|
| H A D | cindent.c | 1618 curwin->w_cursor.col = col; in get_baseclass_amount() 1682 : trypos->col < tryposBrace->col)) in find_match_paren_after_brace() 2326 : trypos->col < tryposBrace->col) in get_c_indent() 2365 && trypos->col == our_paren_pos.col) in get_c_indent() 2433 && trypos->col < our_paren_pos.col) in get_c_indent() 2461 for (col = 0; col < our_paren_pos.col; ++col) in get_c_indent() 2483 col = our_paren_pos.col + 1; in get_c_indent() 2487 our_paren_pos.col = col; in get_c_indent() 2518 col = our_paren_pos.col; in get_c_indent() 2525 col = our_paren_pos.col; in get_c_indent() [all …]
|
| H A D | mouse.c | 78 col = pos->col - 1; in find_start_of_word() 79 col -= (*mb_head_off)(line, line + col); in find_start_of_word() 82 pos->col = col; in find_start_of_word() 101 pos->col -= (*mb_head_off)(line, line + pos->col); in find_end_of_word() 106 col = pos->col + (*mb_ptr2len)(line + pos->col); in find_end_of_word() 110 pos->col = col; in find_end_of_word() 113 pos->col = col; in find_end_of_word() 154 mpos->col = vcol2col(wp, mpos->lnum, col); in get_fpos_of_mouse() 790 end_visual.col - curwin->w_cursor.col) in do_mouse() 809 (start_visual.col + end_visual.col) / 2) in do_mouse() [all …]
|
| H A D | indent.c | 1012 if (col >= curwin->w_cursor.col + extra) in inindent() 1581 long col; in ex_retab() local 1639 col = 0; in ex_retab() 1709 ptr + col, (size_t)(old_len - col + 1)); in ex_retab() 1711 for (col = 0; col < len; col++) in ex_retab() 1712 ptr[col] = (col < num_tabs) ? '\t' : ' '; in ex_retab() 1730 col += (*mb_ptr2len)(ptr + col); in ex_retab() 1732 ++col; in ex_retab() 1976 curwin->w_cursor.col = pos->col; in get_lisp_indent() 1977 col = pos->col; in get_lisp_indent() [all …]
|
| H A D | screen.c | 483 ++col; in screen_line() 728 ++col; in screen_line() 1379 col = 0; in win_redr_custom() 1523 || col >= screen_Columns || col < 0) 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() 2277 for (c = col; c < col + width; ++c) in screen_draw_rectangle() 2310 col = 0; in redraw_block() 2407 ++col; in screen_fill() 2428 col = end_col - col; in screen_fill() [all …]
|
| H A D | charset.c | 806 col += lbr_chartabsize_adv(line, &s, col); in linetabsize_col() 821 col += win_lbr_chartabsize(wp, line, s, col, NULL); in win_linetabsize() 949 colnr_T col) in lbr_chartabsize() argument 972 colnr_T col) in lbr_chartabsize_adv() argument 993 colnr_T col, in win_lbr_chartabsize() argument 1045 col2 = col; in win_lbr_chartabsize() 1108 col = col % numberextra; in win_lbr_chartabsize() 1114 if (col == 0 || col + size + sbrlen > (colnr_T)wp->w_width) in win_lbr_chartabsize() 1159 colnr_T col, in win_nolbr_chartabsize() argument 1383 colnr_T col; in getvvcol() local [all …]
|
| H A D | textobject.c | 244 curwin->w_cursor.col = 0; in findpar() 950 ++curwin->w_cursor.col; in current_sent() 1628 VIsual.col = 0; in current_par() 1637 oap->start.col = 0; in current_par() 1655 int col, in find_next_quote() argument 1663 c = line[col]; in find_next_quote() 1667 ++col; in find_next_quote() 1671 col += (*mb_ptr2len)(line + col); in find_next_quote() 1673 ++col; in find_next_quote() 1675 return col; in find_next_quote() [all …]
|
| H A D | edit.c | 1715 Insstart.col = col; in set_insstart() 1753 curwin->w_cursor.col = col; in display_dollar() 1813 while ((int)curwin->w_cursor.col > col) in backspace_until_column() 2469 && curwin->w_cursor.col == tpos.col) in stop_insert() 3947 || curwin->w_cursor.col >= Insstart.col) in ins_bs_one() 4978 && fpos.col < Insstart.col) in ins_tab() 4980 ptr += Insstart.col - fpos.col; in ins_tab() 4981 fpos.col = Insstart.col; in ins_tab() 5003 Insstart.col = fpos.col; in ins_tab() 5032 i = cursor->col - fpos.col; in ins_tab() [all …]
|
| H A D | termlib.c | 411 line = col; in tgoto() 415 line = col; in tgoto() 419 line = col; in tgoto() 424 if (col>gx) col += gy; in tgoto() 441 line = col; in tgoto() 445 line = col; in tgoto() 446 col = gx; in tgoto() 450 col++; in tgoto() 458 col ^= 0140; in tgoto() 462 col = col/10<<4+col%10; in tgoto() [all …]
|
| H A D | register.c | 1271 && oap->start.col == oap->end.col) in op_yank() 1778 col = curwin->w_cursor.col; in do_put() 1799 ++col; in do_put() 1810 ++col; in do_put() 1852 shortline = (vcol < col) || (vcol == col && !*ptr) ; in do_put() 1987 ++col; in do_put() 2021 pos.col = col; in do_put() 2047 col = pos.col; in do_put() 2206 curbuf->b_op_end.col = col - 1; in do_put() 2230 curwin->w_cursor.col = col; in do_put() [all …]
|
| /vim-8.2.3635/src/libvterm/t/ |
| H A D | harness.c | 66 printf("rgb(%d,%d,%d", col->red, col->green, col->blue); in print_color() 430 int col; in screen_damage() local 453 for(col = rect.start_col; col < eol; col++) { in screen_damage() 457 pos.col = col; in screen_damage() 493 int col; in screen_sb_popline() local 499 for(col = 0; col < cols; col++) { in screen_sb_popline() 500 if(col < 5) in screen_sb_popline() 501 cells[col].chars[0] = 'A' + col; in screen_sb_popline() 795 pos.row, pos.col, state_pos.row, state_pos.col); in main() 796 else if(pos.col != state_pos.col) in main() [all …]
|
| /vim-8.2.3635/runtime/indent/ |
| H A D | falcon.vim | 173 if (col > 0 && !s:IsInStringOrComment(lnum, col)) 252 return col > 0 && !s:IsInStringOrComment(a:lnum, col) ? col : 0 258 while col != -1 && s:IsInStringOrComment(a:lnum, col) 262 return col + 1 284 if col > 0 && !s:IsInStringOrComment(clnum, col) 288 if line[col-1]==')' && col('.') != col('$') - 1 352 if col('.') + 1 == col('$') 378 if col > 0 379 call cursor(lnum, col) 393 if col > 0 [all …]
|
| H A D | jsonc.vim | 42 function s:IsInString(lnum, col) argument 80 let col = match(getline(a:lnum), a:regex) + 1 81 return col > 0 && !s:IsInString(a:lnum, col) ? col : 0 96 let vcol = col('.') 107 let col = matchend(line, '\/\*') 108 if col > 0 && !s:IsInString(v:lnum, col) 114 let col = matchend(line, '\*\/') 115 if col > 0 && !s:IsInString(v:lnum, col) 126 let col = matchend(line, '^\s*[]}]') 128 if col > 0 && !s:IsInString(v:lnum, col) [all …]
|
| /vim-8.2.3635/src/libvterm/include/ |
| H A D | vterm.h | 35 int col; member 51 return (a.row == b.row) ? a.col - b.col : a.row - b.row; in vterm_pos_cmp() 70 p.col >= r.start_col && p.col < r.end_col; in vterm_rect_contains() 137 #define VTERM_COLOR_IS_INDEXED(col) \ argument 144 #define VTERM_COLOR_IS_RGB(col) \ argument 152 #define VTERM_COLOR_IS_DEFAULT_FG(col) \ argument 153 (!!((col)->type & VTERM_COLOR_DEFAULT_FG)) 160 #define VTERM_COLOR_IS_DEFAULT_BG(col) \ argument 161 (!!((col)->type & VTERM_COLOR_DEFAULT_BG)) 167 #define VTERM_COLOR_IS_INVALID(col) (!!((col)->type & VTERM_COLOR_INVALID)) argument [all …]
|