diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-03 13:26:02 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-03 13:26:02 +0100 |
commit | 4fa1175765d55613302fc27d0f65e2c699452b6e (patch) | |
tree | c1322ae51aab567c43386d082fd91d52ff1c786b /src/drawline.c | |
parent | 37096afd3f3133a831ab49a9677f090c3c935c9d (diff) |
patch 8.2.2563: cannot use multibyte characters for folding in 'fillchars'v8.2.2563
Problem: Cannot use multibyte characters for folding in 'fillchars'.
Solution: Port pull request 11568 to Vim. (Yegappan Lakshmanan,
closes #7924)
Diffstat (limited to 'src/drawline.c')
-rw-r--r-- | src/drawline.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drawline.c b/src/drawline.c index 2f865127f7..03a229eaec 100644 --- a/src/drawline.c +++ b/src/drawline.c @@ -1031,12 +1031,11 @@ win_line( // Draw the 'foldcolumn'. Allocate a buffer, "extra" may // already be in use. vim_free(p_extra_free); - p_extra_free = alloc(12 + 1); - + p_extra_free = alloc(MAX_MCO * fdc + 1); if (p_extra_free != NULL) { - fill_foldcolumn(p_extra_free, wp, FALSE, lnum); - n_extra = fdc; + n_extra = fill_foldcolumn(p_extra_free, wp, + FALSE, lnum); p_extra_free[n_extra] = NUL; p_extra = p_extra_free; c_extra = NUL; |