| /vim-8.2.3635/src/ |
| H A D | popupwin.c | 583 wp->w_topline = wp->w_cursor.lnum - wp->w_height + 1; in popup_show_curline() 590 && plines_m_win(wp, wp->w_topline, wp->w_cursor.lnum) in popup_show_curline() 959 || wp->w_cursor.lnum >= wp->w_firstline + wp->w_height) in apply_options() 1365 if (wp->w_maxwidth > 0 && wp->w_width > wp->w_maxwidth) in popup_adjust_position() 2339 for (wp = first_popupwin; wp != NULL; wp = nextwp) in popup_handle_mouse_moved() 2701 for (wp = first_popupwin; wp != NULL; prev = wp, wp = wp->w_next) in popup_close() 2738 for (wp = *root; wp != NULL; prev = wp, wp = wp->w_next) in popup_close_tabpage() 3372 wp != NULL; wp = wp->w_next) in popup_no_mapping() 4084 + wp->w_popup_padding[3] + wp->w_width + wp->w_leftcol, in update_popups() 4169 for (wp = first_popupwin; !abort && wp != NULL; wp = wp->w_next) in set_ref_in_popups() [all …]
|
| H A D | drawscreen.c | 196 if (W_WINROW(wp) + wp->w_height + wp->w_status_height in update_screen() 797 wp->w_ru_cursor = wp->w_cursor; in win_redr_ruler() 798 wp->w_ru_virtcol = wp->w_virtcol; in win_redr_ruler() 800 wp->w_ru_topline = wp->w_topline; in win_redr_ruler() 803 wp->w_ru_topfill = wp->w_topfill; in win_redr_ruler() 1034 screen_line(wp->w_winrow, wp->w_wincol, (int)wp->w_width, in redraw_win_toolbar() 1197 if (wp->w_p_nu || wp->w_p_rnu) in fold_line() 1368 screen_line(row + W_WINROW(wp), wp->w_wincol, (int)wp->w_width, in fold_line() 1546 i = (wp->w_p_nu || wp->w_p_rnu) ? number_width(wp) : 0; in win_update() 1763 i = plines_m_win(wp, wp->w_topline, wp->w_lines[0].wl_lnum - 1); in win_update() [all …]
|
| H A D | drawline.c | 87 win_T *wp, in get_sign_display_info() argument 459 if (syntax_present(wp) && !wp->w_s->b_syn_error in win_line() 946 wp->w_last_cursorline = wp->w_cursor.lnum; in win_line() 1078 if ((wp->w_p_nu || wp->w_p_rnu) in win_line() 1108 if (wp->w_p_nu && !wp->w_p_rnu) in win_line() 1221 if (wp->w_skipcol > 0 && wp->w_p_wrap && wp->w_briopt_sbr) in win_line() 1269 if (wp->w_skipcol == 0 || !wp->w_p_wrap) in win_line() 1331 row = wp->w_cline_row + wp->w_cline_height; in win_line() 1382 if (wp->w_p_cul && lnum == wp->w_cursor.lnum in win_line() 2117 if (!wp->w_p_lbr || !wp->w_p_list) in win_line() [all …]
|
| H A D | window.c | 295 wp = wp->w_next; in do_window() 2305 wp = wp->w_next; in close_windows() 2639 wp = wp->w_next; in win_close() 2778 for (wp = tp->tp_firstwin; wp != NULL && wp != win; wp = wp->w_next) in win_close_othertab() 3491 wp->w_frame->fr_width = wp->w_width + wp->w_vsep_width; in frame_fix_width() 3631 for (wp = firstwin; win_valid(wp); wp = nextwp) in close_others() 3688 wp->w_s = &wp->w_buffer->b_s; in win_init_empty() 5262 wp->w_prev->w_next = wp->w_next; in win_remove() 5269 wp->w_next->w_prev = wp->w_prev; in win_remove() 6305 wp->w_skipcol += wp->w_width - win_col_off(wp); in scroll_to_fraction() [all …]
|
| H A D | evalwindow.c | 22 win_T *wp; in win_getid() local 42 wp = firstwin; in win_getid() 46 for ( ; wp != NULL; wp = wp->w_next) in win_getid() 56 win_T *wp; in win_id2tabwin() local 96 win_T *wp; in win_id2wp_tp() local 114 return wp; in win_id2wp_tp() 177 return wp; in find_win_by_nr() 187 wp != NULL; wp = wp->w_next) in find_win_by_nr() 189 return wp; in find_win_by_nr() 193 return wp; in find_win_by_nr() [all …]
|
| H A D | move.c | 153 redrawWinline(wp, wp->w_cursor.lnum); in redraw_for_cursorline() 497 wp->w_valid_cursor = wp->w_cursor; in check_cursor_moved() 498 wp->w_valid_leftcol = wp->w_leftcol; in check_cursor_moved() 506 wp->w_valid_leftcol = wp->w_leftcol; in check_cursor_moved() 773 wp->w_cline_height = plines_win_nofill(wp, wp->w_cursor.lnum, in curs_rows() 777 wp->w_cline_height = plines_win(wp, wp->w_cursor.lnum, TRUE); in curs_rows() 779 wp->w_cline_folded = hasFoldingWin(wp, wp->w_cursor.lnum, in curs_rows() 788 wp->w_cline_folded = hasFoldingWin(wp, wp->w_cursor.lnum, in curs_rows() 824 getvvcol(wp, &wp->w_cursor, NULL, &(wp->w_virtcol), NULL); in validate_virtcol_win() 900 return (((wp->w_p_nu || wp->w_p_rnu) ? number_width(wp) + 1 : 0) in win_col_off() [all …]
|
| H A D | screen.c | 204 if ((wp->w_p_nu || wp->w_p_rnu) in win_draw_end() 215 wp->w_wincol, W_ENDCOL(wp) - 1 - n, in win_draw_end() 225 wp->w_wincol + n, (int)W_ENDCOL(wp), in win_draw_end() 857 screen_fill(W_WINROW(wp) + row, W_WINROW(wp) + wp->w_height, in draw_vsep_win() 858 W_ENDCOL(wp), W_ENDCOL(wp) + 1, in draw_vsep_win() 1315 ewp = wp == NULL ? curwin : wp; in win_redr_custom() 1362 else if (wp != NULL && wp != curwin && bt_terminal(wp->w_buffer) in win_redr_custom() 1369 else if (wp != NULL && wp != curwin && wp->w_status_height != 0) in win_redr_custom() 3431 nextrow = W_WINROW(wp) + wp->w_height + wp->w_status_height; in win_ins_lines() 3550 screen_fill(W_WINROW(wp) + row, W_WINROW(wp) + wp->w_height, in win_do_lines() [all …]
|
| H A D | session.c | 251 win_T *wp; in ses_winsizes() local 255 for (wp = tab_firstwin; wp != NULL; wp = wp->w_next) in ses_winsizes() 339 if (wp->w_arg_idx != current_arg_idx && wp->w_arg_idx < WARGCOUNT(wp) in put_view() 467 (long)(wp->w_cursor.lnum - wp->w_topline), in put_view() 468 (long)wp->w_height / 2, (long)wp->w_height) < 0) in put_view() 486 if (!wp->w_p_wrap && wp->w_leftcol > 0 && wp->w_width > 0) in put_view() 491 (long)(wp->w_virtcol - wp->w_leftcol), in put_view() 492 (long)wp->w_width / 2, (long)wp->w_width) < 0 in put_view() 762 for (wp = tab_firstwin; wp != NULL; wp = wp->w_next) in makeopens() 810 for (wp = tab_firstwin; wp != NULL; wp = W_NEXT(wp)) in makeopens() [all …]
|
| H A D | match.c | 29 win_T *wp, in match_add() argument 54 cur = wp->w_match_head; in match_add() 79 cur = wp->w_match_head; in match_add() 84 wp->w_next_match_id++; in match_add() 210 wp->w_match_head = m; in match_add() 285 clear_matches(win_T *wp) in clear_matches() argument 295 wp->w_match_head = m; in clear_matches() 628 win_T *wp, in prepare_search_hl_line() argument 710 win_T *wp, in update_search_hl() argument 860 if ((long)(wp->w_p_wrap ? wp->w_skipcol : wp->w_leftcol) > prevcol) in get_prevcol_hl_flag() [all …]
|
| H A D | charset.c | 782 RET_WIN_BUF_CHARTABSIZE(wp, wp->w_buffer, p, col) in win_chartabsize() 990 win_T *wp, in win_lbr_chartabsize() argument 1013 if (!wp->w_p_lbr && !wp->w_p_bri && *get_showbreak_value(wp) == NUL) in win_lbr_chartabsize() 1018 RET_WIN_BUF_CHARTABSIZE(wp, wp->w_buffer, s, col) in win_lbr_chartabsize() 1075 && wp->w_p_wrap && in_win_border(wp, col)) in win_lbr_chartabsize() 1157 win_T *wp, in win_nolbr_chartabsize() argument 1198 width1 = wp->w_width - win_col_off(wp); in in_win_border() 1219 win_T *wp, in getvcol() argument 1259 if ((!wp->w_p_list || wp->w_lcs_chars.tab1 != NUL) in getvcol() 1261 && !wp->w_p_lbr && *get_showbreak_value(wp) == NUL && !wp->w_p_bri in getvcol() [all …]
|
| H A D | fold.c | 474 win_T *wp; in newFoldLevel() local 481 if (wp != curwin && foldmethodIsDiff(wp) && wp->w_p_scb) in newFoldLevel() 1259 win_T *wp; in setManualFold() local 1268 if (wp != curwin && foldmethodIsDiff(wp) && wp->w_p_scb) in setManualFold() 1293 win_T *wp, in setManualFoldWin() argument 1492 win_T *wp, in foldMarkAdjust() argument 1709 win_T *wp, in checkSmall() argument 1902 win_T *wp, in get_foldtext() argument 2189 fline.wp = wp; in foldUpdateIEMS() 2366 if (wp->w_redraw_top == 0 || wp->w_redraw_top > top) in foldUpdateIEMS() [all …]
|
| H A D | gui.c | 491 win_T *wp; in gui_init() local 988 *wp++ = *p; in set_guifontwide() 3817 for (wincount = 0; wp != NULL; wp = wp->w_next, ++wincount) in get_tabline_label() 3928 sb->wp = wp; in gui_create_scrollbar() 4069 for (wp = firstwin; wp != sb->wp && wp != NULL; wp = wp->w_next) in gui_drag_scrollbar() 4402 && wp->w_wincol + wp->w_width >= midcol); in gui_do_scrollbar() 4450 for (wp = firstwin, i = 0; i < current_scrollbar; wp = W_NEXT(wp), i++) in gui_do_scroll() 4495 wp->w_scbind_pos = wp->w_topline; in gui_do_scroll() 4910 if (wp == curwin || wp == NULL) in gui_mouse_focus() 4935 wp->w_height + W_WINROW(wp)); in gui_mouse_focus() [all …]
|
| H A D | diff.c | 676 n = diff_check(wp, wp->w_topline); in diff_redraw() 1478 wp->w_p_scb_save = wp->w_p_scb; in diff_win_options() 1481 wp->w_p_crb_save = wp->w_p_crb; in diff_win_options() 1486 wp->w_p_wrap_save = wp->w_p_wrap; in diff_win_options() 1500 wp->w_p_fdc_save = wp->w_p_fdc; in diff_win_options() 1501 wp->w_p_fen_save = wp->w_p_fen; in diff_win_options() 1502 wp->w_p_fdl_save = wp->w_p_fdl; in diff_win_options() 1546 wp->w_p_scb = wp->w_p_scb_save; in ex_diffoff() 1548 wp->w_p_crb = wp->w_p_crb_save; in ex_diffoff() 1560 wp->w_p_fdc = wp->w_p_fdc_save; in ex_diffoff() [all …]
|
| H A D | evalbuffer.c | 249 win_T *wp; in set_buffer_lines() local 259 && (wp->w_buffer != curbuf || wp == curwin) in set_buffer_lines() 459 win_T *wp; in buf_win_common() local 473 rettv->vval.v_number = (wp != NULL ? (get_nr ? winnr : wp->w_id) : -1); in buf_win_common() 508 win_T *wp; in f_deletebufline() local 572 if (wp->w_cursor.lnum > wp->w_buffer->b_ml.ml_line_count) in f_deletebufline() 573 wp->w_cursor.lnum = wp->w_buffer->b_ml.ml_line_count; in f_deletebufline() 594 win_T *wp; in get_buffer_info() local 631 FOR_ALL_POPUPWINS(wp) in get_buffer_info() 917 win_T **wp, in find_win_for_buf() argument [all …]
|
| H A D | beval.c | 36 win_T *wp; in find_word_under_cursor() local 41 wp = mouse_find_win(&row, &col, FAIL_POPUP); in find_word_under_cursor() 42 if (wp != NULL && row >= 0 && row < wp->w_height && col < wp->w_width) in find_word_under_cursor() 46 if (!mouse_comp_pos(wp, &row, &col, &lnum, NULL)) in find_word_under_cursor() 74 col = vcol2col(wp, lnum, col); in find_word_under_cursor() 78 && wp->w_buffer == curwin->w_buffer in find_word_under_cursor() 117 *winp = wp; in find_word_under_cursor() 230 win_T *wp; in general_beval_cb() local 259 : wp->w_buffer->b_p_bexpr; in general_beval_cb() 268 set_vim_var_nr(VV_BEVAL_WINID, wp->w_id); in general_beval_cb() [all …]
|
| H A D | mouse.c | 130 win_T *wp; in get_fpos_of_mouse() local 1092 curwin = wp; in ins_mousescroll() 1710 wp->w_p_rl ? col < wp->w_width - wp->w_p_fdc : in jump_to_mouse() 2024 if (WIN_IS_POPUP(wp) && !wp->w_has_scrollbar) in nv_mousescroll() 2027 curwin = wp; in nv_mousescroll() 2967 win_T *wp; in mouse_find_win() local 2977 if (*rowp >= wp->w_winrow && *rowp < wp->w_winrow + popup_height(wp) in mouse_find_win() 2979 && *colp < wp->w_wincol + popup_width(wp)) in mouse_find_win() 2980 pwp = wp; in mouse_find_win() 3060 win_T *wp; in f_getmousepos() local [all …]
|
| H A D | change.c | 471 win_T *wp; in changed_common() local 537 if (wp->w_buffer == curbuf && wp->w_changelistidx > 0) in changed_common() 592 if (i >= 0 && wp->w_cursor.lnum > wp->w_lines[i].wl_lnum) in changed_common() 598 else if (wp->w_cursor.lnum == lnum && wp->w_cursor.col >= col) in changed_common() 647 set_topline(wp, wp->w_topline); in changed_common() 716 win_T *wp; in changed_bytes() local 719 FOR_ALL_WINDOWS(wp) in changed_bytes() 720 if (wp->w_p_diff && wp != curwin) in changed_bytes() 860 win_T *wp; in changed_lines() local 863 FOR_ALL_WINDOWS(wp) in changed_lines() [all …]
|
| H A D | misc1.c | 342 win_T *wp, in plines_win() argument 360 win_T *wp, in plines_win_nofill() argument 406 if (wp->w_p_list && wp->w_lcs_chars.eol != NUL) in plines_win_nofold() 412 width = wp->w_width - win_col_off(wp); in plines_win_nofold() 470 width = wp->w_width - win_col_off(wp); in plines_win_col() 503 count += plines_win_nofill(wp, first, TRUE) + wp->w_topfill; in plines_m_win() 566 win_T *wp; in check_status() local 569 if (wp->w_buffer == buf && wp->w_status_height) in check_status() 1678 wp = NULL; in vim_getenv() 1731 wp = NULL; in vim_getenv() [all …]
|
| H A D | spell.c | 245 mi.mi_win = wp; in spell_check() 1246 if (!wp->w_p_spell || *wp->w_s->b_p_spl == NUL in no_spell_checking() 1265 win_T *wp, in spell_move_to() argument 2008 clear_midword(wp); in did_set_spelllang() 2016 wp->w_s->b_cjk = 0; in did_set_spelllang() 2471 win_T *wp; in spell_reload() local 2486 if (wp->w_p_spell) in spell_reload() 2741 win_T *wp, in spell_casefold() argument 4373 win_T *wp; in did_set_spell_option() local 4386 FOR_ALL_WINDOWS(wp) in did_set_spell_option() [all …]
|
| H A D | buffer.c | 456 win_T *wp; in can_unload_buffer() local 3007 win_T *wp; in wininfo_other_tab_diff() local 4621 if (wp->w_p_list && wp->w_lcs_chars.tab1 == NUL) in build_stl_str_hl() 4624 getvcol(wp, &wp->w_cursor, NULL, &virtcol, NULL); in build_stl_str_hl() 5071 above += diff_check_fill(wp, wp->w_topline) - wp->w_topfill; in get_rel_pos() 5072 if (wp->w_topline == 1 && wp->w_topfill >= 1) in get_rel_pos() 5241 for (wp = firstwin; wp != NULL; wp = wpnext) in ex_buffer_all() 5246 ? wp->w_height + wp->w_status_height < Rows - p_ch in ex_buffer_all() 5289 wp = NULL; in ex_buffer_all() 5386 win_close(wp, !buf_hide(wp->w_buffer)); in ex_buffer_all() [all …]
|
| H A D | arglist.c | 220 win_T *wp; in alist_slash_adjust() local 899 win_T *wp, *wpnext; in do_arg_all() local 963 for (wp = firstwin; wp != NULL; wp = wpnext) in do_arg_all() 966 buf = wp->w_buffer; in do_arg_all() 997 new_curwin = wp; in do_arg_all() 1016 wp->w_arg_idx = i; in do_arg_all() 1272 win_T *wp; in f_argc() local 1288 if (wp != NULL) in f_argc() 1310 win_T *wp; in f_arglistid() local 1320 if (wp != NULL) in f_arglistid() [all …]
|
| /vim-8.2.3635/src/proto/ |
| H A D | popupwin.pro | 5 void popup_drag(win_T *wp); 6 void popup_set_firstline(win_T *wp); 9 int popup_top_extra(win_T *wp); 10 int popup_left_extra(win_T *wp); 11 int popup_height(win_T *wp); 12 int popup_width(win_T *wp); 13 int popup_extra_width(win_T *wp); 14 int parse_previewpopup(win_T *wp); 31 void popup_hide(win_T *wp); 33 void popup_show(win_T *wp); [all …]
|
| H A D | move.pro | 3 void redraw_for_cursorline(win_T *wp); 7 void check_cursor_moved(win_T *wp); 9 void changed_window_setting_win(win_T *wp); 10 void set_topline(win_T *wp, linenr_T lnum); 14 void changed_line_abv_curs_win(win_T *wp); 16 void validate_botline_win(win_T *wp); 18 void invalidate_botline_win(win_T *wp); 19 void approximate_botline_win(win_T *wp); 24 void validate_virtcol_win(win_T *wp); 27 int win_col_off(win_T *wp); [all …]
|
| H A D | window.pro | 40 void win_goto(win_T *wp); 45 void win_enter(win_T *wp, int undo_sync); 50 void win_remove(win_T *wp, tabpage_T *tp); 51 int win_alloc_lines(win_T *wp); 52 void win_free_lsize(win_T *wp); 61 void win_setwidth_win(int width, win_T *wp); 66 void set_fraction(win_T *wp); 67 void win_new_height(win_T *wp, int height); 69 void win_new_width(win_T *wp, int width); 70 void win_comp_scroll(win_T *wp); [all …]
|
| H A D | screen.pro | 2 int conceal_cursor_line(win_T *wp); 4 int get_wcr_attr(win_T *wp); 6 int compute_foldcolumn(win_T *wp, int col); 7 size_t fill_foldcolumn(char_u *p, win_T *wp, int closed, linenr_T lnum); 12 void draw_vsep_win(win_T *wp, int row); 14 int stl_connected(win_T *wp); 15 int get_keymap_str(win_T *wp, char_u *fmt, char_u *buf, int len); 16 void win_redr_custom(win_T *wp, int draw_ruler); 50 int fillchar_status(int *attr, win_T *wp); 55 int number_width(win_T *wp); [all …]
|