diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-23 04:13:29 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-23 10:00:53 -0400 |
commit | 6c8851be4e5ce8cbd6f224451fae8a0adc292bf6 (patch) | |
tree | fb3644fcd5566cac85a186513e0ba451505c1f36 /src/nvim/indent_c.c | |
parent | 27fbffeb4f56a76a24a8d8b348caf6f733f2fc4d (diff) | |
download | rneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.tar.gz rneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.tar.bz2 rneovim-6c8851be4e5ce8cbd6f224451fae8a0adc292bf6.zip |
lint
Diffstat (limited to 'src/nvim/indent_c.c')
-rw-r--r-- | src/nvim/indent_c.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c index c1aeb4cab8..f8ce6200d7 100644 --- a/src/nvim/indent_c.c +++ b/src/nvim/indent_c.c @@ -1409,8 +1409,9 @@ static pos_T *find_start_brace(void) && (pos = ind_find_start_CORS(NULL)) == NULL) { // XXX break; } - if (pos != NULL) + if (pos != NULL) { curwin->w_cursor.lnum = pos->lnum; + } } curwin->w_cursor = cursor_save; return trypos; @@ -2066,7 +2067,7 @@ int get_c_indent(void) } curwin->w_cursor.lnum = lnum; - /* Skip a comment or raw string. XXX */ + // Skip a comment or raw string. XXX if ((trypos = ind_find_start_CORS(NULL)) != NULL) { lnum = trypos->lnum + 1; continue; @@ -2588,10 +2589,9 @@ int get_c_indent(void) break; } - /* - * If we're in a comment or raw string now, skip to the start - * of it. - */ /* XXX */ + // If we're in a comment or raw string now, skip to the start + // of it. + // XXX if ((trypos = ind_find_start_CORS(&raw_string_start)) != NULL) { curwin->w_cursor.lnum = trypos->lnum + 1; curwin->w_cursor.col = 0; @@ -3359,10 +3359,9 @@ term_again: l = get_cursor_line_ptr(); - /* - * If we're in a comment or raw string now, skip to the start - * of it. - */ /* XXX */ + // If we're in a comment or raw string now, skip to the start + // of it. + // XXX if ((trypos = ind_find_start_CORS(NULL)) != NULL) { curwin->w_cursor.lnum = trypos->lnum + 1; curwin->w_cursor.col = 0; |