aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/misc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r--src/nvim/misc1.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c
index 8d23224478..415b4938cc 100644
--- a/src/nvim/misc1.c
+++ b/src/nvim/misc1.c
@@ -320,10 +320,11 @@ open_line (
}
}
p = skipwhite(ptr);
- if (*p == '}') /* if line starts with '}': do indent */
+ if (*p == '}') { // if line starts with '}': do indent
did_si = TRUE;
- else /* can delete indent when '{' typed */
- can_si_back = TRUE;
+ } else { // can delete indent when '{' typed
+ can_si_back = true;
+ }
}
curwin->w_cursor = old_cursor;
}