Search notes:

VIM: src/window.c

win_alloc()

Allocates a new window structure.
If the new window is not hidden, the window is linked into the window list.

win_alloc_first()

win_alloc_first allocates the first window and puts an empty buffer into it.
Vim won't start up if this function fails.

Index