diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-03-24 20:30:14 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-25 18:57:02 -0300 |
commit | ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d (patch) | |
tree | ecb1f753dd0fad9889aca15a083c7c99c1407ba7 /src/edit.c | |
parent | 68bc6bce2923f049f84d919aea24600f18139a46 (diff) | |
download | rneovim-ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d.tar.gz rneovim-ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d.tar.bz2 rneovim-ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d.zip |
Use memset instead of vim_memset
Ran some commands on terminal, reviewed changes, and made some manual changes
too.
find src | xargs perl -i -p -e "s/vim_memset/memset/g"
git grep -l memset | egrep "\.c$" | xargs perl -i -p -e \
's/(#include "vim\.h")/#include <string.h>\n\n\1/g'
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c index f3a393a9a4..f081f9a219 100644 --- a/src/edit.c +++ b/src/edit.c @@ -11,6 +11,8 @@ * edit.c: functions for Insert mode */ +#include <string.h> + #include "vim.h" #include "edit.h" #include "buffer.h" @@ -3504,7 +3506,7 @@ int ins_compl_add_tv(typval_T *tv, int dir) aempty = get_dict_number(tv->vval.v_dict, (char_u *)"empty"); } else { word = get_tv_string_chk(tv); - vim_memset(cptext, 0, sizeof(cptext)); + memset(cptext, 0, sizeof(cptext)); } if (word == NULL || (!aempty && *word == NUL)) return FAIL; |