Lines Matching refs:win
495 win_T *win, // if not NULL, set b_last_cursor in close_buffer() argument
573 if (win != NULL && win_valid_any_tab(win)) in close_buffer()
580 set_last_cursor(win); in close_buffer()
581 buflist_setfpos(buf, win, in close_buffer()
582 win->w_cursor.lnum == 1 ? 0 : win->w_cursor.lnum, in close_buffer()
583 win->w_cursor.col, TRUE); in close_buffer()
700 if (win_valid_any_tab(win) && win->w_buffer == buf) in close_buffer()
701 win->w_buffer = NULL; // make sure we don't use the buffer now in close_buffer()
861 win_T *win; in buf_freeall() local
864 FOR_ALL_TAB_WINDOWS(tp, win) in buf_freeall()
865 if (win->w_buffer == buf) in buf_freeall()
866 clearFolding(win); in buf_freeall()
2938 win_T *win, // may be NULL when using :badd in buflist_setfpos() argument
2946 if (wip->wi_win == win) in buflist_setfpos()
2954 wip->wi_win = win; in buflist_setfpos()
2980 if (copy_options && win != NULL) in buflist_setfpos()
2983 copy_winopt(&win->w_onebuf_opt, &wip->wi_opt); in buflist_setfpos()
2985 wip->wi_fold_manual = win->w_fold_manual; in buflist_setfpos()
2986 cloneFoldGrowArray(&win->w_folds, &wip->wi_folds); in buflist_setfpos()
3365 win_T *win; in setfname() local
3370 FOR_ALL_TAB_WINDOWS(tab, win) in setfname()
3371 if (win->w_buffer == obuf) in setfname()
3553 buflist_altfpos(win_T *win) in buflist_altfpos() argument
3555 buflist_setfpos(curbuf, win, win->w_cursor.lnum, win->w_cursor.col, TRUE); in buflist_altfpos()