summaryrefslogtreecommitdiffstats
path: root/src/indent.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/indent.c')
-rw-r--r--src/indent.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/indent.c b/src/indent.c
index cbb3f94f4b..477a44deb1 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2188,12 +2188,12 @@ fixthisline(int (*get_the_indent)(void))
{
int amount = get_the_indent();
- if (amount >= 0)
- {
- change_indent(INDENT_SET, amount, FALSE, 0, TRUE);
- if (linewhite(curwin->w_cursor.lnum))
- did_ai = TRUE; // delete the indent if the line stays empty
- }
+ if (amount < 0)
+ return;
+
+ change_indent(INDENT_SET, amount, FALSE, 0, TRUE);
+ if (linewhite(curwin->w_cursor.lnum))
+ did_ai = TRUE; // delete the indent if the line stays empty
}
/*