aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2004-02-12 16:25:12 +0000
committerBruce Evans <bde@FreeBSD.org>2004-02-12 16:25:12 +0000
commita55a608e716edc4b771df6461db70777dabc51d1 (patch)
tree6cc94d660024fab2b2de30a050a5b972a8ab25ed /usr.bin
parent321fd460311977d6b8acbd3ac6892df165375b4e (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/indent/indent.15
-rw-r--r--usr.bin/indent/io.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/indent/indent.1 b/usr.bin/indent/indent.1
index 1720c99785f9..822f64f4e8eb 100644
--- a/usr.bin/indent/indent.1
+++ b/usr.bin/indent/indent.1
@@ -34,7 +34,7 @@
.\" @(#)indent.1 8.1 (Berkeley) 7/1/93
.\" $FreeBSD$
.\"
-.Dd July 1, 1993
+.Dd Februrary 13, 2004
.Dt INDENT 1
.Os
.Sh NAME
@@ -196,7 +196,8 @@ lines will be indented that far from the beginning of the first line of the
statement. Parenthesized expressions have extra indentation added to
indicate the nesting, unless
.Fl \&lp
-is in effect.
+is in effect
+or the contination indent is exactly half of the main indent.
.Fl \&ci
defaults to the same value as
.Fl i .
diff --git a/usr.bin/indent/io.c b/usr.bin/indent/io.c
index 7af2d19b7a41..3a2eaf4ff935 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;