mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
refactor: replace char_u with char 25 (#21838)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -5222,12 +5222,11 @@ static void str_to_reg(yankreg_T *y_ptr, MotionType yank_type, const char *str,
|
||||
}
|
||||
} else {
|
||||
size_t line_len;
|
||||
for (const char_u *start = (char_u *)str, *end = (char_u *)str + len;
|
||||
for (const char *start = str, *end = str + len;
|
||||
start < end + extraline;
|
||||
start += line_len + 1, lnum++) {
|
||||
assert(end - start >= 0);
|
||||
line_len = (size_t)((char_u *)xmemscan(start, '\n',
|
||||
(size_t)(end - start)) - start);
|
||||
line_len = (size_t)((char *)xmemscan(start, '\n', (size_t)(end - start)) - start);
|
||||
if (line_len > maxlen) {
|
||||
maxlen = line_len;
|
||||
}
|
||||
|
Reference in New Issue
Block a user