mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
msg_puts_attr_len: check default_grid.chars if headless
Nvim might call `msg_puts_attr_len` before the screen buffers are allocated.
This commit is contained in:
parent
27b684b83f
commit
c06504687d
@ -1812,7 +1812,7 @@ void msg_puts_attr_len(const char *const str, const ptrdiff_t len, int attr)
|
|||||||
msg_col = saved_msg_col;
|
msg_col = saved_msg_col;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!msg_use_printf() || headless_mode) {
|
if (!msg_use_printf() || (headless_mode && default_grid.chars)) {
|
||||||
msg_puts_display((const char_u *)str, len, attr, false);
|
msg_puts_display((const char_u *)str, len, attr, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user