0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.1-185

This commit is contained in:
Bram Moolenaar
2008-01-02 16:49:36 +00:00
parent ad8958b188
commit 2c994e8516
4 changed files with 34 additions and 8 deletions

View File

@@ -6939,6 +6939,25 @@ replace_push(c)
++replace_stack_nr;
}
#if defined(FEAT_MBYTE) || defined(PROTO)
/*
* Push a character onto the replace stack. Handles a multi-byte character in
* reverse byte order, so that the first byte is popped off first.
* Return the number of bytes done (includes composing characters).
*/
int
replace_push_mb(p)
char_u *p;
{
int l = (*mb_ptr2len)(p);
int j;
for (j = l - 1; j >= 0; --j)
replace_push(p[j]);
return l;
}
#endif
#if 0
/*
* call replace_push(c) with replace_offset set to the first NUL.