diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-03-26 02:51:44 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-26 16:28:13 -0300 |
commit | 07dad7acf3d49b3136c5aad2c9fe05abb9aaf032 (patch) | |
tree | 97ab0057d5c3cf17d2a2e90862c22432dd11c674 /src/regexp.c | |
parent | dbc904956a17e6bec1ddeba9330b639167dbb882 (diff) | |
download | rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.gz rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.bz2 rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.zip |
Use memmove instead of mch_memmove
Diffstat (limited to 'src/regexp.c')
-rw-r--r-- | src/regexp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regexp.c b/src/regexp.c index 4881267c69..080b2d8991 100644 --- a/src/regexp.c +++ b/src/regexp.c @@ -6453,9 +6453,9 @@ char_u *regtilde(char_u *source, int magic) if (tmpsub != NULL) { /* copy prefix */ len = (int)(p - newsub); /* not including ~ */ - mch_memmove(tmpsub, newsub, (size_t)len); + memmove(tmpsub, newsub, (size_t)len); /* interpret tilde */ - mch_memmove(tmpsub + len, reg_prev_sub, (size_t)prevlen); + memmove(tmpsub + len, reg_prev_sub, (size_t)prevlen); /* copy postfix */ if (!magic) ++p; /* back off \ */ @@ -6724,7 +6724,7 @@ static int vim_regsub_both(char_u *source, char_u *dest, int copy, int magic, in * are composing characters; copy them as-is. */ if (clen < totlen) { if (copy) - mch_memmove(dst + 1, src - 1 + clen, + memmove(dst + 1, src - 1 + clen, (size_t)(totlen - clen)); dst += totlen - clen; } |