mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
*: Fix new linter errors
Originally there were 128 new errors, so I thought this is a good idea to fix all of them. Of course, this commit also fixes many suppressed errors.
This commit is contained in:
@@ -2282,15 +2282,14 @@ int get_c_indent(void)
|
||||
* location for b_ind_open_extra.
|
||||
*/
|
||||
|
||||
if (start_brace == BRACE_IN_COL0) { /* '{' is in column 0 */
|
||||
if (start_brace == BRACE_IN_COL0) { // '{' is in column 0
|
||||
amount = curbuf->b_ind_open_left_imag;
|
||||
lookfor_cpp_namespace = TRUE;
|
||||
} else if (start_brace == BRACE_AT_START &&
|
||||
lookfor_cpp_namespace) { /* '{' is at start */
|
||||
|
||||
lookfor_cpp_namespace = TRUE;
|
||||
lookfor_cpp_namespace = true;
|
||||
} else if (start_brace == BRACE_AT_START
|
||||
&& lookfor_cpp_namespace) { // '{' is at start
|
||||
lookfor_cpp_namespace = true;
|
||||
} else {
|
||||
if (start_brace == BRACE_AT_END) { /* '{' is at end of line */
|
||||
if (start_brace == BRACE_AT_END) { // '{' is at end of line
|
||||
amount += curbuf->b_ind_open_imag;
|
||||
|
||||
l = skipwhite(get_cursor_line_ptr());
|
||||
|
Reference in New Issue
Block a user