aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-09-02 13:32:25 +0200
committerGitHub <noreply@github.com>2019-09-02 13:32:25 +0200
commitcb339ca0fb27976daca1909557d2862be9629d0e (patch)
tree028e65927ae113a042e2c8a40a9fcc7dfcc73bc3 /src/nvim/message.c
parent099445cc07b0154edc6ecd562a28e86c87c0096b (diff)
parent66f4e8aee0bb810342364eaf6c9486918cbf1f17 (diff)
downloadrneovim-cb339ca0fb27976daca1909557d2862be9629d0e.tar.gz
rneovim-cb339ca0fb27976daca1909557d2862be9629d0e.tar.bz2
rneovim-cb339ca0fb27976daca1909557d2862be9629d0e.zip
Merge pull request #10913 from bfredl/nomsgsep
screen: fixes for `set display-=msgsep`, fixes #10912
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 2354cce2b7..ac731210d7 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -154,8 +154,8 @@ void msg_grid_validate(void)
{
grid_assign_handle(&msg_grid);
bool should_alloc = msg_dothrottle();
- if (msg_grid.Rows != Rows || msg_grid.Columns != Columns
- || (should_alloc && !msg_grid.chars)) {
+ if (should_alloc && (msg_grid.Rows != Rows || msg_grid.Columns != Columns
+ || !msg_grid.chars)) {
// TODO(bfredl): eventually should be set to "invalid". I e all callers
// will use the grid including clear to EOS if necessary.
grid_alloc(&msg_grid, Rows, Columns, false, true);