Lines Matching refs:wp
342 win_T *wp, in plines_win() argument
349 return plines_win_nofill(wp, lnum, winheight) + diff_check_fill(wp, lnum); in plines_win()
360 win_T *wp, in plines_win_nofill() argument
367 if (!wp->w_p_wrap) in plines_win_nofill()
370 if (wp->w_width == 0) in plines_win_nofill()
376 if (lineFolded(wp, lnum) == TRUE) in plines_win_nofill()
380 lines = plines_win_nofold(wp, lnum); in plines_win_nofill()
381 if (winheight > 0 && lines > wp->w_height) in plines_win_nofill()
382 return (int)wp->w_height; in plines_win_nofill()
391 plines_win_nofold(win_T *wp, linenr_T lnum) in plines_win_nofold() argument
397 s = ml_get_buf(wp->w_buffer, lnum, FALSE); in plines_win_nofold()
400 col = win_linetabsize(wp, s, (colnr_T)MAXCOL); in plines_win_nofold()
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()
418 width += win_col_off2(wp); in plines_win_nofold()
427 plines_win_col(win_T *wp, linenr_T lnum, long column) in plines_win_col() argument
438 lines = diff_check_fill(wp, lnum); in plines_win_col()
441 if (!wp->w_p_wrap) in plines_win_col()
444 if (wp->w_width == 0) in plines_win_col()
447 line = s = ml_get_buf(wp->w_buffer, lnum, FALSE); in plines_win_col()
452 col += win_lbr_chartabsize(wp, line, s, (colnr_T)col, NULL); in plines_win_col()
463 if (*s == TAB && (State & NORMAL) && (!wp->w_p_list || in plines_win_col()
464 wp->w_lcs_chars.tab1)) in plines_win_col()
465 col += win_lbr_chartabsize(wp, line, s, (colnr_T)col, NULL) - 1; in plines_win_col()
470 width = wp->w_width - win_col_off(wp); in plines_win_col()
476 lines += (col - width) / (width + win_col_off2(wp)) + 1; in plines_win_col()
481 plines_m_win(win_T *wp, linenr_T first, linenr_T last) in plines_m_win() argument
492 x = foldedCount(wp, first, NULL); in plines_m_win()
502 if (first == wp->w_topline) in plines_m_win()
503 count += plines_win_nofill(wp, first, TRUE) + wp->w_topfill; in plines_m_win()
506 count += plines_win(wp, first, TRUE); in plines_m_win()
566 win_T *wp; in check_status() local
568 FOR_ALL_WINDOWS(wp) in check_status()
569 if (wp->w_buffer == buf && wp->w_status_height) in check_status()
571 wp->w_redr_status = TRUE; in check_status()
1663 WCHAR *wn, *wp; in vim_getenv() local
1674 wp = _wgetenv(wn); in vim_getenv()
1677 if (wp != NULL && *wp == NUL) // empty is the same as not set in vim_getenv()
1678 wp = NULL; in vim_getenv()
1680 if (wp != NULL) in vim_getenv()
1682 p = utf16_to_enc(wp, NULL); in vim_getenv()
1729 wp = _wgetenv(L"VIM"); in vim_getenv()
1730 if (wp != NULL && *wp == NUL) // empty is the same as not set in vim_getenv()
1731 wp = NULL; in vim_getenv()
1732 if (wp != NULL) in vim_getenv()
1734 char_u *q = utf16_to_enc(wp, NULL); in vim_getenv()