Lines Matching refs:curwin

196 					? curwin->w_alt_fnum : Prenum) == NULL)  in do_window()
207 Prenum == 0 ? curwin->w_alt_fnum : Prenum, in do_window()
302 wp = curwin->w_prev; in do_window()
308 wp = curwin->w_next; in do_window()
362 wp = curwin; in do_window()
368 if (curwin == wp) in do_window()
369 win_close(curwin, FALSE); in do_window()
443 win_setheight(curwin->w_height + (int)Prenum1); in do_window()
451 win_setheight(curwin->w_height - (int)Prenum1); in do_window()
468 win_setwidth(curwin->w_width + (int)Prenum1); in do_window()
476 win_setwidth(curwin->w_width - (int)Prenum1); in do_window()
527 win_T *oldwin = curwin; in do_window()
534 RESET_BINDING(curwin); in do_window()
540 win_close(curwin, FALSE); in do_window()
545 curwin->w_cursor.lnum = lnum; in do_window()
570 curwin->w_set_curswant = TRUE; in do_window()
780 if (curwin->w_buffer->b_locked_split) in check_split_disallowed()
868 oldwin = curwin; in win_split_ins()
982 wmh1 = (p_wmh == 0 ? 1 : p_wmh) + WINBAR_HEIGHT(curwin); in win_split_ins()
1110 win_init(wp, curwin, flags); in win_split_ins()
1181 wp->w_p_scr = curwin->w_p_scr; in win_split_ins()
1564 maxcount = (curwin->w_width + curwin->w_vsep_width in make_windows()
1570 maxcount = (VISIBLE_HEIGHT(curwin) + curwin->w_status_height in make_windows()
1595 if (win_split(curwin->w_width - (curwin->w_width - todo) in make_windows()
1601 if (win_split(curwin->w_height - (curwin->w_height - todo in make_windows()
1642 frp = curwin->w_frame->fr_parent->fr_child; in win_exchange()
1646 else if (curwin->w_frame->fr_next != NULL) // Swap with next in win_exchange()
1647 frp = curwin->w_frame->fr_next; in win_exchange()
1649 frp = curwin->w_frame->fr_prev; in win_exchange()
1653 if (frp == NULL || frp->fr_win == NULL || frp->fr_win == curwin) in win_exchange()
1665 wp2 = curwin->w_prev; in win_exchange()
1666 frp2 = curwin->w_frame->fr_prev; in win_exchange()
1667 if (wp->w_prev != curwin) in win_exchange()
1669 win_remove(curwin, NULL); in win_exchange()
1670 frame_remove(curwin->w_frame); in win_exchange()
1671 win_append(wp->w_prev, curwin); in win_exchange()
1672 frame_insert(frp, curwin->w_frame); in win_exchange()
1684 temp = curwin->w_status_height; in win_exchange()
1685 curwin->w_status_height = wp->w_status_height; in win_exchange()
1687 temp = curwin->w_vsep_width; in win_exchange()
1688 curwin->w_vsep_width = wp->w_vsep_width; in win_exchange()
1691 frame_fix_height(curwin); in win_exchange()
1693 frame_fix_width(curwin); in win_exchange()
1725 FOR_ALL_FRAMES(frp, curwin->w_frame->fr_parent->fr_child) in win_rotate()
1737 frp = curwin->w_frame->fr_parent->fr_child; in win_rotate()
1753 for (frp = curwin->w_frame; frp->fr_next != NULL; in win_rotate()
1792 int height = curwin->w_height; in win_totop()
1803 (void)winframe_remove(curwin, &dir, NULL); in win_totop()
1804 win_remove(curwin, NULL); in win_totop()
1809 (void)win_split_ins(size, flags, curwin, dir); in win_totop()
1814 win_equal(curwin, TRUE, 'v'); in win_totop()
1903 win_equal_rec(next_curwin == NULL ? curwin : next_curwin, current, in win_equal()
2293 if (wp->w_buffer == buf && (!keep_curwin || wp != curwin) in close_windows()
2405 entering_window(curwin); in close_last_window_tabpage()
2522 if (win == curwin) in win_close()
2525 leaving_window(curwin); in win_close()
2588 if (curwin->w_buffer == NULL) in win_close()
2589 curwin->w_buffer = curbuf; in win_close()
2624 if (win == curwin) in win_close()
2626 curwin = wp; in win_close()
2640 if (wp == curwin) in win_close()
2644 curwin = wp; in win_close()
2650 curbuf = curwin->w_buffer; in win_close()
2660 win_equal(curwin, curwin->w_frame->fr_parent == win_frame, dir); in win_close()
2858 curwin = NULL; in win_free_all()
3525 if (topfrp->fr_win == curwin && next_curwin == NULL) in frame_minheight()
3531 m += WINBAR_HEIGHT(curwin); in frame_minheight()
3580 if (p_wmw == 0 && topfrp->fr_win == curwin && next_curwin == NULL) in frame_minwidth()
3634 if (wp != curwin) // don't close current window in close_others()
3702 win_init_empty(curwin); in curwin_init()
3723 curtab->tp_curwin = curwin; in win_alloc_first()
3743 win_init_some(wp, curwin); in win_alloc_popup_win()
3775 curwin = win_alloc(NULL, FALSE); in win_alloc_firstwin()
3781 if (curwin == NULL || curbuf == NULL) in win_alloc_firstwin()
3783 curwin->w_buffer = curbuf; in win_alloc_firstwin()
3785 curwin->w_s = &(curbuf->b_s); in win_alloc_firstwin()
3788 curwin->w_alist = &global_alist; in win_alloc_firstwin()
3794 win_init(curwin, oldwin, 0); in win_alloc_firstwin()
3797 RESET_BINDING(curwin); in win_alloc_firstwin()
3800 new_frame(curwin); in win_alloc_firstwin()
3801 if (curwin->w_frame == NULL) in win_alloc_firstwin()
3803 topframe = curwin->w_frame; in win_alloc_firstwin()
3967 newtp->tp_firstwin = newtp->tp_lastwin = newtp->tp_curwin = curwin; in win_new_tabpage()
3971 win_comp_scroll(curwin); in win_new_tabpage()
3984 entering_window(curwin); in win_new_tabpage()
4164 leaving_window(curwin); in leave_tabpage()
4187 tp->tp_curwin = curwin; in leave_tabpage()
4472 win_T *owp = curwin; in win_goto()
4496 wp->w_cursor = curwin->w_cursor; in win_goto()
4507 if (curwin->w_p_cole > 0 && !msg_scrolled) in win_goto()
4627 win = win_vert_neighbor(curtab, curwin, up, count); in win_goto_ver()
4714 win = win_horz_neighbor(curtab, curwin, left, count); in win_goto_hor()
4742 if (wp == curwin && !curwin_invalid) // nothing to do in win_enter_ext()
4747 leaving_window(curwin); in win_enter_ext()
4785 prevwin = curwin; // remember for CTRL-W p in win_enter_ext()
4786 curwin->w_redr_status = TRUE; in win_enter_ext()
4788 curwin = wp; in win_enter_ext()
4792 curwin->w_cursor.coladd = 0; in win_enter_ext()
4808 entering_window(curwin); in win_enter_ext()
4823 curwin->w_redr_status = TRUE; in win_enter_ext()
4825 if (bt_terminal(curwin->w_buffer)) in win_enter_ext()
4834 if (curwin->w_height < p_wh && !curwin->w_p_wfh in win_enter_ext()
4836 && !popup_is_popup(curwin) in win_enter_ext()
4840 else if (curwin->w_height == 0) in win_enter_ext()
4844 if (curwin->w_width < p_wiw && !curwin->w_p_wfw) in win_enter_ext()
4862 if (curwin->w_localdir != NULL || curtab->tp_localdir != NULL) in fix_current_dir()
4876 if (curwin->w_localdir != NULL) in fix_current_dir()
4877 dirname = curwin->w_localdir; in fix_current_dir()
4907 if (curwin->w_buffer == buf) in buf_jump_open_win()
4908 wp = curwin; in buf_jump_open_win()
4941 if (curwin != wp) in buf_jump_open_tab()
5370 win_equal(curwin, FALSE, 'v'); in shell_new_rows()
5393 win_equal(curwin, FALSE, 'h'); in shell_new_columns()
5521 win_setheight_win(height, curwin); in win_setheight()
5533 if (win == curwin) in win_setheight_win()
5541 height += WINBAR_HEIGHT(curwin); in win_setheight_win()
5744 win_setwidth_win(width, curwin); in win_setwidth()
5752 if (wp == curwin) in win_setwidth_win()
6234 if (wp == curwin) in win_new_height()
6267 && (!wp->w_p_scb || wp == curwin) in scroll_to_fraction()
6362 if (wp == curwin) in scroll_to_fraction()
6387 if (wp == curwin) in win_new_width()
6638 if (popup_is_popup(curwin)) in only_one_window()
6652 ) || wp == curwin) && wp != aucmd_win) in only_one_window()
6669 if ((do_curwin || wp != curwin) && wp->w_buffer == curbuf) in check_lnums()
6742 if (fr->fr_layout == FR_LEAF && fr->fr_win == curwin) in make_snapshot_rec()
6743 (*frp)->fr_win = curwin; in make_snapshot_rec()