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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user