Searched refs:b_nwindows (Results 1 – 20 of 20) sorted by relevance
611 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()
579 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 …]
85 && ((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()
968 || (!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()
407 --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 …]
134 if (wp != NULL && wp->w_buffer->b_nwindows > 0) in ex_help()191 if (buf != NULL && buf->b_nwindows == 0) in ex_help()
1551 --curbuf->b_nwindows; in aucmd_restbuf()1641 --curbuf->b_nwindows; in aucmd_restbuf()1644 ++curbuf->b_nwindows; in aucmd_restbuf()
2412 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()
912 if (!(only_save_windows && buf->b_nwindows == 0) in makeopens()
5611 || (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()
837 && curbuf->b_nwindows == 1 in pum_set_selected()
1370 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()
1933 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()
481 if (opt->jo_bufnr_buf->b_nwindows == 0 in get_job_options()
2673 int b_nwindows; // nr of windows open on this buffer member
3951 if (buf->b_nwindows > 0) in check_timestamps()
2685 if (buffer->b_nwindows > 0) in append_to_buffer()
4282 if (curbufIsChanged() && curbuf->b_nwindows <= 1 && !buf_hide(curbuf)) in nv_gotofile()
567 " Using :blast and :ball for many events caused a crash, because b_nwindows was
4308 Solution: Do not reset b_nwindows to zero and don't increment it.