Lines Matching refs:win
2980 win_T *win = use_win; in qf_goto_win_with_ll_file() local
2982 if (win == NULL) in qf_goto_win_with_ll_file()
2985 FOR_ALL_WINDOWS(win) in qf_goto_win_with_ll_file()
2986 if (win->w_buffer->b_fnum == qf_fnum) in qf_goto_win_with_ll_file()
2988 if (win == NULL) in qf_goto_win_with_ll_file()
2991 win = curwin; in qf_goto_win_with_ll_file()
2994 if (bt_normal(win->w_buffer)) in qf_goto_win_with_ll_file()
2996 if (win->w_prev == NULL) in qf_goto_win_with_ll_file()
2997 win = lastwin; // wrap around the top in qf_goto_win_with_ll_file()
2999 win = win->w_prev; // go to previous window in qf_goto_win_with_ll_file()
3000 } while (win != curwin); in qf_goto_win_with_ll_file()
3003 win_goto(win); in qf_goto_win_with_ll_file()
3007 if (win->w_llist == NULL && ll_ref != NULL) in qf_goto_win_with_ll_file()
3008 win_set_loclist(win, ll_ref); in qf_goto_win_with_ll_file()
3020 win_T *win; in qf_goto_win_with_qfl_file() local
3023 win = curwin; in qf_goto_win_with_qfl_file()
3027 if (win->w_buffer->b_fnum == qf_fnum) in qf_goto_win_with_qfl_file()
3029 if (win->w_prev == NULL) in qf_goto_win_with_qfl_file()
3030 win = lastwin; // wrap around the top in qf_goto_win_with_qfl_file()
3032 win = win->w_prev; // go to previous window in qf_goto_win_with_qfl_file()
3034 if (IS_QF_WINDOW(win)) in qf_goto_win_with_qfl_file()
3040 win = prevwin; in qf_goto_win_with_qfl_file()
3042 win = altwin; in qf_goto_win_with_qfl_file()
3044 win = curwin->w_prev; in qf_goto_win_with_qfl_file()
3046 win = curwin->w_next; in qf_goto_win_with_qfl_file()
3051 if (altwin == NULL && !win->w_p_pvw && bt_normal(win->w_buffer)) in qf_goto_win_with_qfl_file()
3052 altwin = win; in qf_goto_win_with_qfl_file()
3055 win_goto(win); in qf_goto_win_with_qfl_file()
3089 win_T *win = qf_find_win_with_normal_buf(); in qf_jump_to_usable_window() local
3090 if (win != NULL) in qf_jump_to_usable_window()
4054 win_T *win; in ex_cwindow() local
4062 win = qf_find_win(qi); in ex_cwindow()
4071 if (win != NULL) in ex_cwindow()
4074 else if (win == NULL) in ex_cwindow()
4085 win_T *win = NULL; in ex_cclose() local
4092 win = qf_find_win(qi); in ex_cclose()
4093 if (win != NULL) in ex_cclose()
4094 win_close(win, FALSE); in ex_cclose()
4114 win_T *win; in qf_goto_cwindow() local
4116 win = qf_find_win(qi); in qf_goto_cwindow()
4117 if (win == NULL) in qf_goto_cwindow()
4120 win_goto(win); in qf_goto_cwindow()
4125 if (sz != win->w_width) in qf_goto_cwindow()
4128 else if (sz != win->w_height && win->w_height in qf_goto_cwindow()
4129 + win->w_status_height + tabline_height() < cmdline_row) in qf_goto_cwindow()
4169 win_T *win; in qf_open_new_cwindow() local
4174 win = curwin; in qf_open_new_cwindow()
4227 if (win_valid(win)) in qf_open_new_cwindow()
4228 prevwin = win; in qf_open_new_cwindow()
4293 qf_win_goto(win_T *win, linenr_T lnum) in qf_win_goto() argument
4297 curwin = win; in qf_win_goto()
4298 curbuf = win->w_buffer; in qf_win_goto()
4317 win_T *win; in ex_cbottom() local
4322 win = qf_find_win(qi); in ex_cbottom()
4323 if (win != NULL && win->w_cursor.lnum != win->w_buffer->b_ml.ml_line_count) in ex_cbottom()
4324 qf_win_goto(win, win->w_buffer->b_ml.ml_line_count); in ex_cbottom()
4352 win_T *win; in qf_win_pos_update() local
4357 win = qf_find_win(qi); in qf_win_pos_update()
4358 if (win != NULL in qf_win_pos_update()
4359 && qf_index <= win->w_buffer->b_ml.ml_line_count in qf_win_pos_update()
4364 win->w_redraw_top = old_qf_index; in qf_win_pos_update()
4365 win->w_redraw_bot = qf_index; in qf_win_pos_update()
4369 win->w_redraw_top = qf_index; in qf_win_pos_update()
4370 win->w_redraw_bot = old_qf_index; in qf_win_pos_update()
4372 qf_win_goto(win, qf_index); in qf_win_pos_update()
4374 return win != NULL; in qf_win_pos_update()
4382 is_qf_win(win_T *win, qf_info_T *qi) in is_qf_win() argument
4388 if (bt_quickfix(win->w_buffer)) in is_qf_win()
4389 if ((IS_QF_STACK(qi) && win->w_llist_ref == NULL) in is_qf_win()
4390 || (IS_LL_STACK(qi) && win->w_llist_ref == qi)) in is_qf_win()
4403 win_T *win; in qf_find_win() local
4405 FOR_ALL_WINDOWS(win) in qf_find_win()
4406 if (is_qf_win(win, qi)) in qf_find_win()
4407 return win; in qf_find_win()
4419 win_T *win; in qf_find_buf() local
4431 FOR_ALL_TAB_WINDOWS(tp, win) in qf_find_buf()
4432 if (is_qf_win(win, qi)) in qf_find_buf()
4433 return win->w_buffer; in qf_find_buf()
4457 win_T *win; in qf_update_win_titlevar() local
4460 FOR_ALL_TAB_WINDOWS(tp, win) in qf_update_win_titlevar()
4462 if (is_qf_win(win, qi)) in qf_update_win_titlevar()
4464 curwin = win; in qf_update_win_titlevar()
4478 win_T *win; in qf_update_buffer() local
4491 win = curwin; in qf_update_buffer()
4494 win = qf_find_win_with_loclist(qi); in qf_update_buffer()
4495 if (win == NULL) in qf_update_buffer()
4498 qf_winid = win->w_id; in qf_update_buffer()
4520 if ((win = qf_find_win(qi)) != NULL && old_line_count < win->w_botline) in qf_update_buffer()
6783 win_T *win; in qf_winid() local
6789 win = qf_find_win(qi); in qf_winid()
6790 if (win != NULL) in qf_winid()
6791 return win->w_id; in qf_winid()
7703 win_T *win; in set_ref_in_quickfix() local
7709 FOR_ALL_TAB_WINDOWS(tp, win) in set_ref_in_quickfix()
7711 if (win->w_llist != NULL) in set_ref_in_quickfix()
7713 abort = mark_quickfix_ctx(win->w_llist, copyID); in set_ref_in_quickfix()
7717 if (IS_LL_WINDOW(win) && (win->w_llist_ref->qf_refcount == 1)) in set_ref_in_quickfix()
7722 abort = mark_quickfix_ctx(win->w_llist_ref, copyID); in set_ref_in_quickfix()
8441 win_T *win; in f_setloclist() local
8453 win = find_win_by_nr_or_id(&argvars[0]); in f_setloclist()
8454 if (win != NULL) in f_setloclist()
8455 set_qf_ll_list(win, &argvars[1], &argvars[2], &argvars[3], rettv); in f_setloclist()