Mercurial > vim
diff src/edit.c @ 1470:48b22e2eb1ed v7.1.185
updated for version 7.1-185
author | vimboss |
---|---|
date | Wed, 02 Jan 2008 16:49:36 +0000 |
parents | b0dabd584b8f |
children | 5ba8e25f7fc1 |
line wrap: on
line diff
--- a/src/edit.c +++ b/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.