aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/indent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core/src/indent.rs')
-rw-r--r--helix-core/src/indent.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/indent.rs b/helix-core/src/indent.rs
index d75038d2..e708b317 100644
--- a/helix-core/src/indent.rs
+++ b/helix-core/src/indent.rs
@@ -135,8 +135,8 @@ fn calculate_indentation(node: Option<Node>, newline: bool) -> usize {
// let len = 1;
// })
- if ((indent_scopes.contains(&parent_kind) && true) // not_first_or_last_sibling
- || (indent_except_first_scopes.contains(&parent_kind) && true))
+ if (indent_scopes.contains(&parent_kind) // && not_first_or_last_sibling
+ || indent_except_first_scopes.contains(&parent_kind))
&& !starts_same_line
{
// println!("is_scope {}", parent_kind);