summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-07-17 13:22:51 +0200
committerBram Moolenaar <Bram@vim.org>2015-07-17 13:22:51 +0200
commit2536d4f396680f079e2cb96f9787a434846b5ce7 (patch)
tree0f7a7d0a8d1b24aef3970a03252346c875a8c005 /src/ex_getln.c
parent5d1bc78a2b9fbe3e3112afcde7c80eb19d5989f4 (diff)
downloadvim-git-2536d4f396680f079e2cb96f9787a434846b5ce7.tar.gz
patch 7.4.783v7.4.783
Problem: copy_chars() and copy_spaces() are inefficient. Solution: Use memset() instead. (Dominique Pelle)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 838354d56..610ac862e 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -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;