mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
strings/memory: constify and func_attr.
Fix MB_COPY_cHAR() to accept const pointers.
This commit is contained in:
@@ -3003,7 +3003,7 @@ int utf_head_off(const char_u *base, const char_u *p)
|
||||
/*
|
||||
* Copy a character from "*fp" to "*tp" and advance the pointers.
|
||||
*/
|
||||
void mb_copy_char(char_u **fp, char_u **tp)
|
||||
void mb_copy_char(const char_u **fp, char_u **tp)
|
||||
{
|
||||
int l = (*mb_ptr2len)(*fp);
|
||||
|
||||
|
Reference in New Issue
Block a user