diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-10-05 21:50:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 21:50:12 +0200 |
commit | 6ae4a6e0711035a8a0801dd6fdb545e020bccd70 (patch) | |
tree | 0e76ac339ab041a087a623979e8218ec9223d8f1 /src/nvim/window.c | |
parent | ede85dda2ee23820481d38d0def2d2c83da4e43e (diff) | |
parent | 7746f641b89d1d80b2121980f83ae1f322c30e89 (diff) | |
download | rneovim-6ae4a6e0711035a8a0801dd6fdb545e020bccd70.tar.gz rneovim-6ae4a6e0711035a8a0801dd6fdb545e020bccd70.tar.bz2 rneovim-6ae4a6e0711035a8a0801dd6fdb545e020bccd70.zip |
Merge pull request #20374 from bfredl/notype
screen: refactor old curwin-heavy logic and graduate "msgsep" feature
Diffstat (limited to 'src/nvim/window.c')
-rw-r--r-- | src/nvim/window.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/nvim/window.c b/src/nvim/window.c index c3806e10ff..c0edef7abc 100644 --- a/src/nvim/window.c +++ b/src/nvim/window.c @@ -3865,13 +3865,12 @@ void close_others(int message, int forceit) } // Allocate the first window and put an empty buffer in it. -// Called from main(). -// -// Return FAIL when something goes wrong. -int win_alloc_first(void) +// Only called from main(). +void win_alloc_first(void) { if (win_alloc_firstwin(NULL) == FAIL) { - return FAIL; + // allocating first buffer before any autocmds should not fail. + abort(); } first_tabpage = alloc_tabpage(); @@ -3880,8 +3879,6 @@ int win_alloc_first(void) curtab->tp_firstwin = firstwin; curtab->tp_lastwin = lastwin; curtab->tp_curwin = curwin; - - return OK; } // Init `aucmd_win`. This can only be done after the first window |