0
0
mirror of https://github.com/vim/vim.git synced 2025-10-05 05:34: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

@@ -250,7 +250,7 @@ getcmdline(firstc, count, indent)
/* autoindent for :insert and :append */
if (firstc <= 0)
{
copy_spaces(ccline.cmdbuff, indent);
vim_memset(ccline.cmdbuff, ' ', indent);
ccline.cmdbuff[indent] = NUL;
ccline.cmdpos = indent;
ccline.cmdspos = indent;