Home
last modified time | relevance | path

Searched refs:w_width (Results 1 – 25 of 37) sorted by relevance

12

/vim-8.2.3635/src/
H A Ddrawscreen.c709 width = wp->w_width; in win_redr_ruler()
955 if (len > wp->w_width - col) in text_to_screenline()
956 len = wp->w_width - col; in text_to_screenline()
998 if (++col >= wp->w_width) in redraw_win_toolbar()
1009 if (++col >= wp->w_width) in redraw_win_toolbar()
1022 if (col >= wp->w_width) in redraw_win_toolbar()
1027 while (col < wp->w_width) in redraw_win_toolbar()
1178 len = wp->w_width - col; in fold_line()
1199 len = wp->w_width - col; in fold_line()
1253 while (col < wp->w_width in fold_line()
[all …]
H A Dpopupwin.c1198 wp->w_width = 0; in popup_adjust_position()
1313 wp->w_width = 1; in popup_adjust_position()
1321 int w_width = wp->w_width; in popup_adjust_position() local
1326 if (wp->w_width < maxwidth) in popup_adjust_position()
1330 wp->w_width = w_width; in popup_adjust_position()
1338 wp->w_width = maxwidth; in popup_adjust_position()
1413 wp->w_width = minwidth; in popup_adjust_position()
1419 wp->w_width = maxwidth; in popup_adjust_position()
1445 if (wp->w_width < 0) in popup_adjust_position()
1446 wp->w_width = 0; in popup_adjust_position()
[all …]
H A Ddrawline.c58 width1 = wp->w_width - cur_col_off; in margin_columns_win()
993 col = wp->w_width - 1; in win_line()
1256 n_extra = wp->w_width - col; in win_line()
1838 (col >= wp->w_width - 1)) in win_line()
2245 (col < wp->w_width)) in win_line()
2351 (col < wp->w_width))) in win_line()
2373 < wp->w_width))) in win_line()
2670 if (col >= wp->w_width) in win_line()
2760 while (col < wp->w_width) in win_line()
2817 col == wp->w_width - 1) in win_line()
[all …]
H A Dscreen.c150 if (nn > wp->w_width) in screen_fill_end()
151 nn = wp->w_width; in screen_fill_end()
242 int wwidth = wp->w_width; in compute_foldcolumn()
1263 maxwidth = 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()
2316 width = wp->w_width; in redraw_block()
3041 wp->w_width * sizeof(schar_T)); in linecopy()
3047 wp->w_width * sizeof(u8char_T)); in linecopy()
[all …]
H A Dmove.c876 && col >= (colnr_T)curwin->w_width in validate_cursor_col()
997 textwidth = curwin->w_width - extra; in curs_columns()
1002 curwin->w_wcol = curwin->w_width - 1; in curs_columns()
1013 if (curwin->w_wcol >= curwin->w_width) in curs_columns()
1117 && curwin->w_width != 0) in curs_columns()
1250 width = wp->w_width - off + win_col_off2(wp); in textpos2screenpos()
1254 && col >= (colnr_T)wp->w_width in textpos2screenpos()
1258 rowoff = ((col - wp->w_width) / width + 1); in textpos2screenpos()
1262 if (col >= wp->w_width) in textpos2screenpos()
1389 curwin->w_virtcol / curwin->w_width; in scrolldown()
[all …]
H A Dcharset.c1038 && wp->w_width != 0) in win_lbr_chartabsize()
1046 colmax = (colnr_T)(wp->w_width - numberextra - col_adj); in win_lbr_chartabsize()
1095 if (col >= (colnr_T)wp->w_width) in win_lbr_chartabsize()
1097 col -= wp->w_width; in win_lbr_chartabsize()
1098 numberextra = wp->w_width - (numberextra - win_col_off2(wp)); in win_lbr_chartabsize()
1114 if (col == 0 || col + size + sbrlen > (colnr_T)wp->w_width) in win_lbr_chartabsize()
1119 if (size + sbrlen + numberwidth > (colnr_T)wp->w_width) in win_lbr_chartabsize()
1122 int width = (colnr_T)wp->w_width - sbrlen - numberwidth; in win_lbr_chartabsize()
1124 ? ((colnr_T)wp->w_width - (sbrlen + col)) : 0; in win_lbr_chartabsize()
1196 if (wp->w_width == 0) // there is no border in in_win_border()
[all …]
H A Dwindow.c937 new_size = oldwin->w_width / 2; in win_split_ins()
944 if (oldwin->w_width - new_size - 1 < p_wmw) in win_split_ins()
962 && (frp->fr_win->w_width > new_size in win_split_ins()
963 || frp->fr_win->w_width > oldwin->w_width in win_split_ins()
1248 win_new_width(wp, oldwin->w_width); in win_split_ins()
1595 if (win_split(curwin->w_width - (curwin->w_width - todo) in make_windows()
3465 --wp->w_width; in frame_add_vsep()
3834 firstwin->w_width = Columns; in win_init_size()
4998 new_wp->w_width = Columns; in win_alloc()
5497 *col += wp->w_width + wp->w_vsep_width; in frame_comp_pos()
[all …]
H A Dmouse.c144 if (col >= wp->w_width) // In vertical separator line in get_fpos_of_mouse()
1119 step = curwin->w_width; in ins_mousescroll()
1684 if (col >= wp->w_width) // In separator line in jump_to_mouse()
1686 on_sep_line = col - wp->w_width + 1; in jump_to_mouse()
1710 wp->w_p_rl ? col < wp->w_width - wp->w_p_fdc : in jump_to_mouse()
1805 count = col - dragwin->w_wincol - dragwin->w_width + 1 in jump_to_mouse()
1947 curwin->w_p_rl ? col < curwin->w_width - curwin->w_p_fdc : in jump_to_mouse()
2072 step = curwin->w_width; in nv_mousescroll()
2873 col = win->w_width - 1 - col; in mouse_comp_pos()
2929 col += row * (win->w_width - off); in mouse_comp_pos()
[all …]
H A Dsession.c270 if (wp->w_width < Columns && (fprintf(fd, in ses_winsizes()
272 n, (long)wp->w_width, Columns / 2, Columns) < 0 in ses_winsizes()
486 if (!wp->w_p_wrap && wp->w_leftcol > 0 && wp->w_width > 0) in put_view()
492 (long)wp->w_width / 2, (long)wp->w_width) < 0 in put_view()
H A Devalwindow.c408 dict_add_number(dict, "width", wp->w_width); in get_win_info()
1102 sprintf((char *)buf, "vert :%dresize %d|", winnr, wp->w_width); in f_winrestcmd()
1154 win_new_width(curwin, curwin->w_width); in f_winrestview()
1208 rettv->vval.v_number = wp->w_width; in f_winwidth()
H A Dpopupmenu.c123 pum_win_width = curwin->w_width; in pum_display()
220 cursor_col = curwin->w_wincol + curwin->w_width in pum_display()
456 if (pum_col < curwin->w_wincol + curwin->w_width - 1) in pum_redraw()
1066 && pum_win_width == curwin->w_width); in pum_in_same_position()
H A Dgui.c4297 || sb->width != wp->w_width in gui_update_scrollbars()
4305 sb->width = wp->w_width; in gui_update_scrollbars()
4400 int midcol = curwin->w_wincol + curwin->w_width / 2; in gui_do_scrollbar()
4402 && wp->w_wincol + wp->w_width >= midcol); in gui_do_scrollbar()
4425 if (which == SBAR_RIGHT ? wp->w_wincol + wp->w_width != Columns in gui_do_scrollbar()
4641 size = curwin->w_width; in gui_update_horiz_scrollbar()
4648 max = curwin->w_width - 1; in gui_update_horiz_scrollbar()
4666 max += curwin->w_width - 1; in gui_update_horiz_scrollbar()
5037 else if (!(State & CMDLINE) && wp->w_vsep_width > 0 && col == wp->w_width in xy2win()
H A Dnormal.c2548 width1 = curwin->w_width - col_off1; in nv_screengo()
2549 width2 = curwin->w_width - col_off2; in nv_screengo()
2553 if (curwin->w_width != 0) in nv_screengo()
2928 cap->count1 *= curwin->w_width / 2; in nv_zet()
2945 case 'L': cap->count1 *= curwin->w_width / 2; in nv_zet()
2989 n = curwin->w_width - curwin_col_off(); in nv_zet()
6065 if (curwin->w_p_wrap && curwin->w_width != 0) in nv_g_cmd()
6067 int width1 = curwin->w_width - curwin_col_off(); in nv_g_cmd()
6081 i += (curwin->w_width - curwin_col_off() in nv_g_cmd()
6147 if (curwin->w_p_wrap && curwin->w_width != 0) in nv_g_cmd()
[all …]
H A Dmisc1.c370 if (wp->w_width == 0) in plines_win_nofill()
412 width = wp->w_width - win_col_off(wp); in plines_win_nofold()
444 if (wp->w_width == 0) in plines_win_col()
470 width = wp->w_width - win_col_off(wp); in plines_win_col()
H A Dtextformat.c773 textwidth = curwin->w_width - curbuf->b_p_wm; in comp_textwidth()
792 textwidth = curwin->w_width - 1; in comp_textwidth()
H A Dbeval.c42 if (wp != NULL && row >= 0 && row < wp->w_height && col < wp->w_width) in find_word_under_cursor()
H A Dmisc2.c159 int width = curwin->w_width - win_col_off(curwin); in coladvance2()
163 && curwin->w_width != 0 in coladvance2()
302 if (b > 0 && b < (MAXCOL - 2 * curwin->w_width)) in coladvance2()
652 lastcol = curwin->w_leftcol + curwin->w_width - curwin_col_off() - 1; in leftcol_changed()
H A Dhelp.c151 if (cmdmod.cmod_split == 0 && curwin->w_width != Columns in ex_help()
152 && curwin->w_width < 80) in ex_help()
H A Dgetchar.c3152 + curwin->w_wcol / curwin->w_width; in vgetorpeek()
3153 curwin->w_wcol %= curwin->w_width; in vgetorpeek()
3166 curwin->w_wcol = curwin->w_width - 1; in vgetorpeek()
H A Dterminal.c295 term->tl_cols = curwin->w_width; in set_term_and_win_size()
318 if (term->tl_cols != curwin->w_width) in set_term_and_win_size()
2225 wp->w_wcol = MIN(pos->col, MAX(0, wp->w_width - 1)); in position_cursor()
3758 newcols = MIN(newcols, wwp->w_width); in term_update_window()
3796 int max_col = MIN(wp->w_width, term->tl_cols); in term_update_window()
3807 , wp->w_wincol, pos.col, wp->w_width, in term_update_window()
5229 int width = MAX(text_width, curwin->w_width); in get_separator()
H A Darglist.c969 || wp->w_width != Columns))) in do_arg_all()
H A Dquickfix.c2866 if (cmdmod.cmod_split == 0 && curwin->w_width != Columns in jump_to_help_window()
2867 && curwin->w_width < 80) in jump_to_help_window()
4125 if (sz != win->w_width) in qf_goto_cwindow()
4224 if (curtab == prevtab && curwin->w_width == Columns) in qf_open_new_cwindow()
H A Dedit.c1677 pc_col += curwin->w_width - 1 - curwin->w_wcol; in edit_putchar()
1763 if (curwin->w_wcol < curwin->w_width) in display_dollar()
H A Dif_ruby.c1703 return INT2NUM(get_win(self)->w_width); in window_width()
H A Dindent.c927 const int eff_wwidth = wp->w_width in get_breakindent_win()

12