mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
Fix lint
This commit is contained in:
@@ -8680,11 +8680,12 @@ static char_u *do_insert_char_pre(int c)
|
|||||||
|
|
||||||
char_u *res = NULL;
|
char_u *res = NULL;
|
||||||
if (ins_apply_autocmds(EVENT_INSERTCHARPRE)) {
|
if (ins_apply_autocmds(EVENT_INSERTCHARPRE)) {
|
||||||
/* Get the value of v:char. It may be empty or more than one
|
// Get the value of v:char. It may be empty or more than one
|
||||||
* character. Only use it when changed, otherwise continue with the
|
// character. Only use it when changed, otherwise continue with the
|
||||||
* original character to avoid breaking autoindent. */
|
// original character to avoid breaking autoindent.
|
||||||
if (STRCMP(buf, get_vim_var_str(VV_CHAR)) != 0)
|
if (STRCMP(buf, get_vim_var_str(VV_CHAR)) != 0) {
|
||||||
res = vim_strsave(get_vim_var_str(VV_CHAR));
|
res = vim_strsave(get_vim_var_str(VV_CHAR));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
set_vim_var_string(VV_CHAR, NULL, -1);
|
set_vim_var_string(VV_CHAR, NULL, -1);
|
||||||
|
Reference in New Issue
Block a user