mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -6369,7 +6369,7 @@ pos_T *var2fpos(const typval_T *const tv, const bool dollar_lnum, int *const ret
|
||||
}
|
||||
int len;
|
||||
if (charcol) {
|
||||
len = mb_charlen(ml_get(pos.lnum));
|
||||
len = mb_charlen((char_u *)ml_get(pos.lnum));
|
||||
} else {
|
||||
len = (int)STRLEN(ml_get(pos.lnum));
|
||||
}
|
||||
@@ -8630,7 +8630,7 @@ void invoke_prompt_callback(void)
|
||||
if (curbuf->b_prompt_callback.type == kCallbackNone) {
|
||||
return;
|
||||
}
|
||||
char *text = (char *)ml_get(lnum);
|
||||
char *text = ml_get(lnum);
|
||||
char *prompt = (char *)prompt_text();
|
||||
if (STRLEN(text) >= STRLEN(prompt)) {
|
||||
text += STRLEN(prompt);
|
||||
|
Reference in New Issue
Block a user