From be8058cfe4b7adff60a68d9503a01e322d7d2ff9 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Thu, 7 Feb 2019 13:05:25 +0100 Subject: 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. --- src/nvim/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/main.c') diff --git a/src/nvim/main.c b/src/nvim/main.c index 5d67f53ec4..c0dea196fb 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -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"); -- cgit