diff options
author | Jason Felice <jason.m.felice@gmail.com> | 2018-08-08 18:31:39 -0700 |
---|---|---|
committer | Jason Felice <jason.m.felice@gmail.com> | 2018-08-09 16:46:50 -0700 |
commit | c6dd84e00b2860bb906d5fd61b8414620714594d (patch) | |
tree | 4c862e5fcb936f670d598a49c9f56dea6df31eaa /src/nvim/edit.c | |
parent | 3c41df269173b68aa5572df8c5b7cae408229b88 (diff) | |
download | rneovim-c6dd84e00b2860bb906d5fd61b8414620714594d.tar.gz rneovim-c6dd84e00b2860bb906d5fd61b8414620714594d.tar.bz2 rneovim-c6dd84e00b2860bb906d5fd61b8414620714594d.zip |
Fix lint
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 8635735df3..dfb0386d0a 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -8680,11 +8680,12 @@ static char_u *do_insert_char_pre(int c) char_u *res = NULL; if (ins_apply_autocmds(EVENT_INSERTCHARPRE)) { - /* Get the value of v:char. It may be empty or more than one - * character. Only use it when changed, otherwise continue with the - * original character to avoid breaking autoindent. */ - if (STRCMP(buf, get_vim_var_str(VV_CHAR)) != 0) + // Get the value of v:char. It may be empty or more than one + // character. Only use it when changed, otherwise continue with the + // original character to avoid breaking autoindent. + if (STRCMP(buf, get_vim_var_str(VV_CHAR)) != 0) { res = vim_strsave(get_vim_var_str(VV_CHAR)); + } } set_vim_var_string(VV_CHAR, NULL, -1); |