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:
19
src/edit.c
19
src/edit.c
@@ -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.
|
||||
|
Reference in New Issue
Block a user