aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/indent_c.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-05-01 17:30:38 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-05-01 17:30:38 -0400
commitd542de4a76dd9e600ebcf1405efdc9d3090ad9a8 (patch)
tree60b1d2aad6205c74b7c2611fbbed45759a302f4f /src/nvim/indent_c.c
parent91afb30b667bbc321d351708f694d00b256be585 (diff)
parentcf4e1fb0f4962319eee292248d9c1f73be3a8d0c (diff)
downloadrneovim-d542de4a76dd9e600ebcf1405efdc9d3090ad9a8.tar.gz
rneovim-d542de4a76dd9e600ebcf1405efdc9d3090ad9a8.tar.bz2
rneovim-d542de4a76dd9e600ebcf1405efdc9d3090ad9a8.zip
Merge pull request #4688 from ZyX-I/clint-checks
Add check for boolean operators placement
Diffstat (limited to 'src/nvim/indent_c.c')
-rw-r--r--src/nvim/indent_c.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c
index 17fadc4bfd..efe8e73a3c 100644
--- a/src/nvim/indent_c.c
+++ b/src/nvim/indent_c.c
@@ -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());