mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38: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:
@@ -946,9 +946,9 @@ void wait_return(int redraw)
|
||||
c = CAR; /* no need for a return in ex mode */
|
||||
got_int = FALSE;
|
||||
} else {
|
||||
/* Make sure the hit-return prompt is on screen when 'guioptions' was
|
||||
* just changed. */
|
||||
screenalloc(false);
|
||||
// Make sure the hit-return prompt is on screen when 'guioptions' was
|
||||
// just changed.
|
||||
screenalloc();
|
||||
|
||||
State = HITRETURN;
|
||||
setmouse();
|
||||
|
Reference in New Issue
Block a user