summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/indent/io.c')
-rw-r--r--usr.bin/indent/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/indent/io.c b/usr.bin/indent/io.c
index 7af2d19..3a2eaf4 100644
--- a/usr.bin/indent/io.c
+++ b/usr.bin/indent/io.c
@@ -295,7 +295,8 @@ compute_code_target(void)
if (ps.paren_level)
if (!lineup_to_parens)
- target_col += continuation_indent * ps.paren_level;
+ target_col += continuation_indent
+ * (2 * continuation_indent == ps.ind_size ? 1 : ps.paren_level);
else {
int w;
int t = paren_target;
OpenPOWER on IntegriCloud