commit | 2536d4f396680f079e2cb96f9787a434846b5ce7 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Jul 17 13:22:51 2015 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Jul 17 13:22:51 2015 +0200 |
tree | 0f7a7d0a8d1b24aef3970a03252346c875a8c005 | |
parent | 5d1bc78a2b9fbe3e3112afcde7c80eb19d5989f4 [diff] [blame] |
patch 7.4.783 Problem: copy_chars() and copy_spaces() are inefficient. Solution: Use memset() instead. (Dominique Pelle)
diff --git a/src/ex_getln.c b/src/ex_getln.c index 838354d..610ac86 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c
@@ -250,7 +250,7 @@ /* 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;