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/buffer.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/buffer.c')
-rw-r--r-- | src/buffer.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c index f175276a72..d0d0b033df 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -25,6 +25,8 @@ * The current implementation remembers all file names ever used. */ +#include <string.h> + #include "vim.h" #include "buffer.h" #include "charset.h" @@ -2933,7 +2935,7 @@ build_stl_str_hl ( /* There are too many items. Add the error code to the statusline * to give the user a hint about what went wrong. */ if (p + 6 < out + outlen) { - mch_memmove(p, " E541", (size_t)5); + memmove(p, " E541", (size_t)5); p += 5; } break; @@ -3010,7 +3012,7 @@ build_stl_str_hl ( n = (long)(p - t) - item[groupitem[groupdepth]].maxwid + 1; *t = '<'; - mch_memmove(t + 1, t + n, (size_t)(p - (t + n))); + memmove(t + 1, t + n, (size_t)(p - (t + n))); p = p - n + 1; /* Fill up space left over by half a double-wide char. */ while (++l < item[groupitem[groupdepth]].minwid) @@ -3032,7 +3034,7 @@ build_stl_str_hl ( *p++ = fillchar; } else { /* fill by inserting characters */ - mch_memmove(t + n - l, t, (size_t)(p - t)); + memmove(t + n - l, t, (size_t)(p - t)); l = n - l; if (p + l >= out + outlen) l = (long)((out + outlen) - p - 1); |