mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 08:18:17 +00:00
screen: cleanup allocation, clearing and validation
grid_xx functions shouldn't randomly be called when the screen is not valid. Nvim deterministically initializes a default screen early in main(), so the default grid can be assumed to be allocated.
This commit is contained in:
@@ -300,7 +300,7 @@ int main(int argc, char **argv)
|
||||
assert(p_ch >= 0 && Rows >= p_ch && Rows - p_ch <= INT_MAX);
|
||||
cmdline_row = (int)(Rows - p_ch);
|
||||
msg_row = cmdline_row;
|
||||
screenalloc(false); // allocate screen buffers
|
||||
screenalloc(); // allocate screen buffers
|
||||
set_init_2(headless_mode);
|
||||
TIME_MSG("inits 2");
|
||||
|
||||
|
Reference in New Issue
Block a user