mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 01:16:31 +00:00
refactor: replace char_u with char 17 - remove STRLCPY (#21235)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -1433,7 +1433,7 @@ int open_line(int dir, int flags, int second_line_indent, bool *did_do_comment)
|
||||
leader = xmalloc((size_t)bytes);
|
||||
allocated = leader; // remember to free it later
|
||||
|
||||
STRLCPY(leader, saved_line, lead_len + 1);
|
||||
xstrlcpy(leader, saved_line, (size_t)lead_len + 1);
|
||||
|
||||
// TODO(vim): handle multi-byte and double width chars
|
||||
for (int li = 0; li < comment_start; li++) {
|
||||
|
Reference in New Issue
Block a user