From c6dd84e00b2860bb906d5fd61b8414620714594d Mon Sep 17 00:00:00 2001 From: Jason Felice Date: Wed, 8 Aug 2018 18:31:39 -0700 Subject: Fix lint --- src/nvim/edit.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') 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); -- cgit