mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
updated for version 7.0038
This commit is contained in:
15
src/mbyte.c
15
src/mbyte.c
@@ -2407,6 +2407,21 @@ utf_head_off(base, p)
|
||||
return (int)(p - q);
|
||||
}
|
||||
|
||||
/*
|
||||
* Copy a character from "*fp" to "*tp" and advance the pointers.
|
||||
*/
|
||||
void
|
||||
mb_copy_char(fp, tp)
|
||||
char_u **fp;
|
||||
char_u **tp;
|
||||
{
|
||||
int l = (*mb_ptr2len_check)(*fp);
|
||||
|
||||
mch_memmove(*tp, *fp, (size_t)l);
|
||||
*tp += l;
|
||||
*fp += l;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the offset from "p" to the first byte of a character. When "p" is
|
||||
* at the start of a character 0 is returned, otherwise the offset to the next
|
||||
|
Reference in New Issue
Block a user