summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-21 01:34:57 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-21 01:36:51 -0400
commit2526d6269112ba8b4f771a2c42fa1aa28563cd48 (patch)
treeb52f1afc53d70285a04c8a1aa121ab2dddff9edb /src/shared
parentcf40f0be1acc73ea7dfb9aabc213f6a762ea62d2 (diff)
logs-show: fix condition for ellipsizing multi-line messages
falconindy> the ellipsizing seems a bit wrong here.... I got a bit carried away with putting dots everywhere :)
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/logs-show.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
index 89a73a5860..f0236eeae5 100644
--- a/src/shared/logs-show.c
+++ b/src/shared/logs-show.c
@@ -132,14 +132,14 @@ static bool print_multiline(FILE *f, unsigned prefix, unsigned n_columns, Output
len = end - pos;
assert(len >= 0);
- /* We need to figure out when we are showing the last line, and
+ /* We need to figure out when we are showing not-last line, *and*
* will skip subsequent lines. In that case, we will put the dots
* at the end of the line, instead of putting dots in the middle
* or not at all.
*/
tail_line =
line + 1 == PRINT_LINE_THRESHOLD ||
- end + 1 >= message + message_len;
+ end + 1 >= message + PRINT_CHAR_THRESHOLD;
if (flags & (OUTPUT_FULL_WIDTH | OUTPUT_SHOW_ALL) ||
(prefix + len + 1 < n_columns && !tail_line)) {