0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

patch 7.4.783

Problem:    copy_chars() and copy_spaces() are inefficient.
Solution:   Use memset() instead. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2015-07-17 13:22:51 +02:00
parent 5d1bc78a2b
commit 2536d4f396
6 changed files with 20 additions and 54 deletions

View File

@@ -2833,7 +2833,7 @@ fill_foldcolumn(p, wp, closed, lnum)
int fdc = compute_foldcolumn(wp, 0);
/* Init to all spaces. */
copy_spaces(p, (size_t)fdc);
vim_memset(p, ' ', (size_t)fdc);
level = win_foldinfo.fi_level;
if (level > 0)