Home
last modified time | relevance | path

Searched refs:b_nwindows (Results 1 – 20 of 20) sorted by relevance

/vim-8.2.3635/src/
H A Devalbuffer.c611 buf->b_ml.ml_mfp != NULL && buf->b_nwindows == 0); in get_buffer_info()
883 --curbuf->b_nwindows; in switch_buffer()
886 ++curbuf->b_nwindows; in switch_buffer()
902 --curbuf->b_nwindows; in restore_buffer()
905 ++curbuf->b_nwindows; in restore_buffer()
H A Dbuffer.c579 if (buf->b_nwindows == 1) in close_buffer()
589 if (buf->b_nwindows == 1) in close_buffer()
642 nwindows = buf->b_nwindows; in close_buffer()
645 if (buf->b_nwindows > 0) in close_buffer()
646 --buf->b_nwindows; in close_buffer()
677 buf->b_nwindows = nwindows; in close_buffer()
705 if (buf->b_nwindows > 0) in close_buffer()
706 --buf->b_nwindows; in close_buffer()
1791 ++curbuf->b_nwindows; in enter_buffer()
1944 && curbuf->b_nwindows <= 1 in curbuf_reusable()
[all …]
H A Dex_cmds2.c85 && ((flags & CCGD_MULTWIN) || buf->b_nwindows <= 1) in check_changed()
243 || buf->b_nwindows > 1 in can_abandon()
318 if ((!hidden || buf->b_nwindows == 0) && bufIsChanged(buf)) in check_changed_any()
689 if (buf->b_nwindows > 0 && (buf->b_flags & BF_SYN_SET)) in ex_listdo()
H A Darglist.c968 || (!keep_tabs && (buf->b_nwindows > 1 in do_arg_all()
1020 if (buf_hide(buf) || forceit || buf->b_nwindows > 1 in do_arg_all()
1025 if (!buf_hide(buf) && buf->b_nwindows <= 1 in do_arg_all()
1081 if (keep_tabs && BUFEMPTY() && curbuf->b_nwindows == 1 in do_arg_all()
H A Dterminal.c407 --curbuf->b_nwindows; in term_close_buffer()
410 ++curbuf->b_nwindows; in term_close_buffer()
513 --curbuf->b_nwindows; in term_start()
516 ++curbuf->b_nwindows; in term_start()
736 --curbuf->b_nwindows; in term_start()
739 ++curbuf->b_nwindows; in term_start()
947 if (terminal_bufs != NULL && wp->w_buffer->b_nwindows > 1) in term_write_session()
985 if (terminal_bufs != NULL && wp->w_buffer->b_nwindows > 1) in term_write_session()
3371 int do_set_w_closing = term->tl_buffer->b_nwindows == 0; in term_after_channel_closed()
3386 if (term->tl_buffer->b_nwindows > 0 && only_one_window()) in term_after_channel_closed()
[all …]
H A Dhelp.c134 if (wp != NULL && wp->w_buffer->b_nwindows > 0) in ex_help()
191 if (buf != NULL && buf->b_nwindows == 0) in ex_help()
H A Dautocmd.c1551 --curbuf->b_nwindows; in aucmd_restbuf()
1641 --curbuf->b_nwindows; in aucmd_restbuf()
1644 ++curbuf->b_nwindows; in aucmd_restbuf()
H A Dex_cmds.c2412 if (other && !forceit && curbuf->b_nwindows == 1 && !buf_hide(curbuf) in getfile()
2602 || (curbuf->b_nwindows == 1 in do_ecmd()
2826 ++was_curbuf->b_nwindows; in do_ecmd()
2844 ++curbuf->b_nwindows; in do_ecmd()
H A Dsession.c912 if (!(only_save_windows && buf->b_nwindows == 0) in makeopens()
H A Dex_docmd.c5611 || (wp->w_buffer->b_nwindows == 1 && wp->w_buffer->b_locked > 0)) in before_quit_autocmds()
5621 || (curbuf->b_nwindows == 1 && curbuf->b_locked > 0)) in before_quit_autocmds()
5825 need_hide = (bufIsChanged(buf) && buf->b_nwindows <= 1); in ex_win_close()
6979 need_hide = (curbufIsChanged() && curbuf->b_nwindows <= 1); in do_exedit()
7003 else if (readonlymode && curbuf->b_nwindows == 1) in do_exedit()
H A Dpopupmenu.c837 && curbuf->b_nwindows == 1 in pum_set_selected()
H A Dwindow.c1370 oldp->w_buffer->b_nwindows++; in win_init()
3758 ++buf->b_nwindows; in win_init_popup_win()
3787 curbuf->b_nwindows = 1; // there is one window in win_alloc_firstwin()
H A Dquickfix.c1933 if (qfbuf != NULL && qfbuf->b_nwindows == 0) in wipe_qf_buffer()
2859 if (wp != NULL && wp->w_buffer->b_nwindows > 0) in jump_to_help_window()
6556 while (buf->b_nwindows > 0) in wipe_dummy_buffer()
6573 if (curbuf != buf && buf->b_nwindows == 0) // safety check in wipe_dummy_buffer()
H A Djob.c481 if (opt->jo_bufnr_buf->b_nwindows == 0 in get_job_options()
H A Dstructs.h2673 int b_nwindows; // nr of windows open on this buffer member
H A Dfileio.c3951 if (buf->b_nwindows > 0) in check_timestamps()
H A Dchannel.c2685 if (buffer->b_nwindows > 0) in append_to_buffer()
H A Dnormal.c4282 if (curbufIsChanged() && curbuf->b_nwindows <= 1 && !buf_hide(curbuf)) in nv_gotofile()
/vim-8.2.3635/src/testdir/
H A Dtest_autocmd.vim567 " Using :blast and :ball for many events caused a crash, because b_nwindows was
/vim-8.2.3635/runtime/doc/
H A Dversion8.txt4308 Solution: Do not reset b_nwindows to zero and don't increment it.