summaryrefslogtreecommitdiff
path: root/src/join.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/join.c')
-rw-r--r--src/join.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/join.c b/src/join.c
index e8544fb3a..34bdd1ce1 100644
--- a/src/join.c
+++ b/src/join.c
@@ -230,7 +230,7 @@ xfields (struct line *line)
}
}
- if (ptr > line->beg && ((tab && ISSPACE (ptr[-1])) || ptr[-1] == tab))
+ if (ptr > line->beg && ((!tab && ISSPACE (ptr[-1])) || ptr[-1] == tab))
{
/* Add one more (empty) field because the last character of the
line was a delimiter. */