Mercurial > vim
diff src/ex_cmds.c @ 1624:18ee39301b82 v7.2a
updated for version 7.2a
author | vimboss |
---|---|
date | Tue, 24 Jun 2008 22:58:06 +0000 |
parents | 8dc36a64ae8b |
children | 0b796e045c42 |
line wrap: on
line diff
--- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -11,10 +11,11 @@ * ex_cmds.c: some functions for command line commands */ +#if defined(MSDOS) || defined(MSWIN) +# include "vimio.h" /* for mch_open(), must be before vim.h */ +#endif + #include "vim.h" -#ifdef HAVE_FCNTL_H -# include <fcntl.h> -#endif #include "version.h" #ifdef FEAT_EX_EXTRA @@ -977,7 +978,7 @@ do_bang(addr_count, eap, forceit, do_in, ) { if (p > newcmd && p[-1] == '\\') - mch_memmove(p - 1, p, (size_t)(STRLEN(p) + 1)); + STRMOVE(p - 1, p); else { trailarg = p; @@ -4895,7 +4896,7 @@ do_sub(eap) for (p1 = new_end; *p1; ++p1) { if (p1[0] == '\\' && p1[1] != NUL) /* remove backslash */ - mch_memmove(p1, p1 + 1, STRLEN(p1)); + STRMOVE(p1, p1 + 1); else if (*p1 == CAR) { if (u_inssub(lnum) == OK) /* prepare for undo */ @@ -4919,7 +4920,7 @@ do_sub(eap) /* move the cursor to the new line, like Vi */ ++curwin->w_cursor.lnum; /* copy the rest */ - mch_memmove(new_start, p1 + 1, STRLEN(p1 + 1) + 1); + STRMOVE(new_start, p1 + 1); p1 = new_start - 1; } }