summaryrefslogtreecommitdiffstats
path: root/src/ex_docmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2008-06-24 20:39:31 +0000
committerBram Moolenaar <Bram@vim.org>2008-06-24 20:39:31 +0000
commita7241f5f19fd0865ce697939c347a8c88fb507d5 (patch)
treee1f1c07fe74094539286be048cc3306f6aedb0bc /src/ex_docmd.c
parentf233048a129fa7a3b89e064078435181d6421da5 (diff)
updated for version 7.2a
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r--src/ex_docmd.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index c5b520c666..460fc2a39a 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -13,10 +13,6 @@
#include "vim.h"
-#ifdef HAVE_FCNTL_H
-# include <fcntl.h> /* for chdir() */
-#endif
-
static int quitmore = 0;
static int ex_pressedreturn = FALSE;
#ifndef FEAT_PRINTER
@@ -1132,7 +1128,7 @@ do_cmdline(cmdline, getline, cookie, flags)
{
/* need to copy the command after the '|' to cmdline_copy, for the
* next do_one_cmd() */
- mch_memmove(cmdline_copy, next_cmdline, STRLEN(next_cmdline) + 1);
+ STRMOVE(cmdline_copy, next_cmdline);
next_cmdline = cmdline_copy;
}
@@ -2375,7 +2371,7 @@ do_one_cmd(cmdlinep, sourcing,
* Halving the number of backslashes is incompatible with previous
* versions. */
if (*p == '\\' && p[1] == '\n')
- mch_memmove(p, p + 1, STRLEN(p));
+ STRMOVE(p, p + 1);
else if (*p == '\n')
{
ea.nextcmd = p + 1;
@@ -4551,7 +4547,7 @@ separate_nextcmd(eap)
++p; /* skip CTRL-V and next char */
else
/* remove CTRL-V and skip next char */
- mch_memmove(p, p + 1, STRLEN(p));
+ STRMOVE(p, p + 1);
if (*p == NUL) /* stop at NUL after CTRL-V */
break;
}
@@ -4582,7 +4578,7 @@ separate_nextcmd(eap)
if ((vim_strchr(p_cpo, CPO_BAR) == NULL
|| !(eap->argt & USECTRLV)) && *(p - 1) == '\\')
{
- mch_memmove(p - 1, p, STRLEN(p) + 1); /* remove the '\' */
+ STRMOVE(p - 1, p); /* remove the '\' */
--p;
}
else
@@ -4640,7 +4636,7 @@ skip_cmd_arg(p, rembs)
if (*p == '\\' && p[1] != NUL)
{
if (rembs)
- mch_memmove(p, p + 1, STRLEN(p));
+ STRMOVE(p, p + 1);
else
++p;
}
@@ -7167,7 +7163,6 @@ theend:
# endif
}
-#if defined(FEAT_MOUSE) || defined(PROTO)
/*
* Open a new tab page.
*/
@@ -7182,7 +7177,6 @@ tabpage_new()
ea.arg = (char_u *)"";
ex_splitview(&ea);
}
-#endif
/*
* :tabnext command
@@ -9425,7 +9419,7 @@ eval_vars(src, srcstart, usedlen, lnump, errormsg, escaped)
if (src > srcstart && src[-1] == '\\')
{
*usedlen = 0;
- mch_memmove(src - 1, src, STRLEN(src) + 1); /* remove backslash */
+ STRMOVE(src - 1, src); /* remove backslash */
return NULL;
}