fix(statuscolumn): foldcolumn buffer is too small (#21761)

Resolve https://github.com/neovim/neovim/issues/21759.
This commit is contained in:
luukvbaal
2023-01-12 16:04:43 +01:00
committed by GitHub
parent 443bbfd59e
commit 0fd59f0121
2 changed files with 23 additions and 1 deletions

View File

@@ -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