From 0fd59f0121bbf8906203689c790eeba6f501600e Mon Sep 17 00:00:00 2001 From: luukvbaal <31730729+luukvbaal@users.noreply.github.com> Date: Thu, 12 Jan 2023 16:04:43 +0100 Subject: fix(statuscolumn): foldcolumn buffer is too small (#21761) Resolve https://github.com/neovim/neovim/issues/21759. --- src/nvim/buffer_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h index c794b88229..f01edd1ad2 100644 --- a/src/nvim/buffer_defs.h +++ b/src/nvim/buffer_defs.h @@ -1426,7 +1426,7 @@ struct statuscol { int sign_attr[SIGN_SHOW_MAX + 1]; ///< attributes used for signs int truncate; ///< truncated width bool draw; ///< draw statuscolumn or not - char fold_text[10]; ///< text in fold column (%C) + char fold_text[9 * 4 + 1]; ///< text in fold column (%C) char *sign_text[SIGN_SHOW_MAX + 1]; ///< text in sign column (%s) char text[MAXPATHL]; ///< text in status column char *textp; ///< current position in text -- cgit