aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-26 02:51:44 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-26 16:28:13 -0300
commit07dad7acf3d49b3136c5aad2c9fe05abb9aaf032 (patch)
tree97ab0057d5c3cf17d2a2e90862c22432dd11c674 /src/os_unix.c
parentdbc904956a17e6bec1ddeba9330b639167dbb882 (diff)
downloadrneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.gz
rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.bz2
rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.zip
Use memmove instead of mch_memmove
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index d657d6a22a..4b38cea807 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -27,6 +27,8 @@
*/
# define select select_declared_wrong
+#include <string.h>
+
#include "vim.h"
#include "os_unix.h"
#include "os/time.h"
@@ -2189,7 +2191,7 @@ int options; /* SHELL_*, see vim.h */
if (ta_buf[i] == CSI && len - i > 2) {
c = TERMCAP2KEY(ta_buf[i + 1], ta_buf[i + 2]);
if (c == K_DEL || c == K_KDEL || c == K_BS) {
- mch_memmove(ta_buf + i + 1, ta_buf + i + 3,
+ memmove(ta_buf + i + 1, ta_buf + i + 3,
(size_t)(len - i - 2));
if (c == K_DEL || c == K_KDEL)
ta_buf[i] = DEL;
@@ -2239,7 +2241,7 @@ int options; /* SHELL_*, see vim.h */
len = write(toshell_fd, (char *)ta_buf, (size_t)1);
if (len > 0) {
ta_len -= len;
- mch_memmove(ta_buf, ta_buf + len, ta_len);
+ memmove(ta_buf, ta_buf + len, ta_len);
}
}
}
@@ -2318,7 +2320,7 @@ int options; /* SHELL_*, see vim.h */
if (p < buffer + len) {
*p = c;
buffer_off = (buffer + len) - p;
- mch_memmove(buffer, p, buffer_off);
+ memmove(buffer, p, buffer_off);
continue;
}
buffer_off = 0;