Lines Matching refs:w_buffer

780     if (curwin->w_buffer->b_locked_split)  in check_split_disallowed()
1366 newp->w_buffer = oldp->w_buffer; in win_init()
1368 newp->w_s = &(oldp->w_buffer->b_s); in win_init()
1370 oldp->w_buffer->b_nwindows++; in win_init()
2237 if (!bt_prompt(win->w_buffer)) in leaving_window()
2242 win->w_buffer->b_prompt_insert = restart_edit; in leaving_window()
2253 if (win->w_buffer->b_prompt_insert == NUL) in leaving_window()
2254 win->w_buffer->b_prompt_insert = 'A'; in leaving_window()
2262 if (!bt_prompt(win->w_buffer)) in entering_window()
2267 if (win->w_buffer->b_prompt_insert != NUL) in entering_window()
2272 restart_edit = win->w_buffer->b_prompt_insert; in entering_window()
2293 if (wp->w_buffer == buf && (!keep_curwin || wp != curwin) in close_windows()
2294 && !(wp->w_closing || wp->w_buffer->b_locked > 0)) in close_windows()
2314 if (wp->w_buffer == buf in close_windows()
2315 && !(wp->w_closing || wp->w_buffer->b_locked > 0)) in close_windows()
2430 if (win->w_buffer != NULL) in win_close_buffer()
2436 if (win->w_buffer != NULL && bt_quickfix(win->w_buffer)) in win_close_buffer()
2437 win->w_buffer->b_p_bl = FALSE; in win_close_buffer()
2441 if (win->w_buffer != NULL) in win_close_buffer()
2447 close_buffer(win, win->w_buffer, action, abort_if_last, FALSE); in win_close_buffer()
2495 if (win->w_closing || (win->w_buffer != NULL in win_close()
2496 && win->w_buffer->b_locked > 0)) in win_close()
2517 if (bt_help(win->w_buffer)) in win_close()
2537 if (wp->w_buffer != curbuf) in win_close()
2582 if (only_one_window() && win_valid(win) && win->w_buffer == NULL in win_close()
2588 if (curwin->w_buffer == NULL) in win_close()
2589 curwin->w_buffer = curbuf; in win_close()
2595 && win->w_buffer == NULL) in win_close()
2628 if (wp->w_p_pvw || bt_quickfix(wp->w_buffer)) in win_close()
2642 if (!wp->w_p_pvw && !bt_quickfix(wp->w_buffer)) in win_close()
2650 curbuf = curwin->w_buffer; in win_close()
2734 apply_autocmds(EVENT_WINCLOSED, winid, winid, FALSE, win->w_buffer); in trigger_winclosed()
2755 if (win->w_closing || (win->w_buffer != NULL in win_close_othertab()
2756 && win->w_buffer->b_locked > 0)) in win_close_othertab()
2765 if (win->w_buffer != NULL) in win_close_othertab()
2767 close_buffer(win, win->w_buffer, free_buf ? DOBUF_UNLOAD : 0, in win_close_othertab()
3638 r = can_abandon(wp->w_buffer, forceit); in close_others()
3650 dialog_changed(wp->w_buffer, FALSE); in close_others()
3657 if (bufIsChanged(wp->w_buffer)) in close_others()
3661 win_close(wp, !buf_hide(wp->w_buffer) in close_others()
3662 && !bufIsChanged(wp->w_buffer)); in close_others()
3688 wp->w_s = &wp->w_buffer->b_s; in win_init_empty()
3757 wp->w_buffer = buf; in win_init_popup_win()
3783 curwin->w_buffer = curbuf; in win_alloc_firstwin()
4365 if (tp != curtab && leave_tabpage(tp->tp_curwin->w_buffer, in goto_tabpage_tp()
4493 if (wp->w_buffer != curbuf) in win_goto()
4755 if (wp->w_buffer != curbuf) in win_enter_ext()
4773 if ((flags & WEE_UNDO_SYNC) && curbuf != wp->w_buffer) in win_enter_ext()
4781 if (wp->w_buffer != curbuf) in win_enter_ext()
4782 buf_copy_options(wp->w_buffer, BCO_ENTER | BCO_NOHELP); in win_enter_ext()
4789 curbuf = wp->w_buffer; in win_enter_ext()
4825 if (bt_terminal(curwin->w_buffer)) in win_enter_ext()
4907 if (curwin->w_buffer == buf) in buf_jump_open_win()
4911 if (wp->w_buffer == buf) in buf_jump_open_win()
4936 if (wp->w_buffer == buf) in buf_jump_open_tab()
5215 if (bt_popup(win->w_buffer)) in win_free_popup()
5218 close_buffer(win, win->w_buffer, 0, FALSE, FALSE); in win_free_popup()
6268 && (height < wp->w_buffer->b_ml.ml_line_count || wp->w_topline > 1)) in scroll_to_fraction()
6647 if (wp->w_buffer != NULL in only_one_window()
6648 && (!((bt_help(wp->w_buffer) && !bt_help(curbuf)) in only_one_window()
6669 if ((do_curwin || wp != curwin) && wp->w_buffer == curbuf) in check_lnums()
6697 if (wp->w_buffer == curbuf) in reset_lnums()
6961 if (wp->w_buffer == NULL) in check_colorcolumn()
6974 if (wp->w_buffer->b_p_tw == 0) in check_colorcolumn()
6976 col += wp->w_buffer->b_p_tw; in check_colorcolumn()