mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 07:16:09 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -884,7 +884,7 @@ static const void *shada_hist_iter(const void *const iter, const uint8_t history
|
||||
.histtype = history_type,
|
||||
.string = hist_he.hisstr,
|
||||
.sep = (char)(history_type == HIST_SEARCH
|
||||
? hist_he.hisstr[STRLEN(hist_he.hisstr) + 1]
|
||||
? hist_he.hisstr[strlen(hist_he.hisstr) + 1]
|
||||
: 0),
|
||||
.additional_elements = hist_he.additional_elements,
|
||||
}
|
||||
@@ -4000,7 +4000,7 @@ static bool shada_removable(const char *name)
|
||||
(void)copy_option_part(&p, part, ARRAY_SIZE(part), ", ");
|
||||
if (part[0] == 'r') {
|
||||
home_replace(NULL, part + 1, (char *)NameBuff, MAXPATHL, true);
|
||||
size_t n = STRLEN(NameBuff);
|
||||
size_t n = strlen(NameBuff);
|
||||
if (mb_strnicmp(NameBuff, new_name, n) == 0) {
|
||||
retval = true;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user