aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/rspamc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/rspamc.cxx')
-rw-r--r--src/client/rspamc.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx
index c757000db..a2bf4c783 100644
--- a/src/client/rspamc.cxx
+++ b/src/client/rspamc.cxx
@@ -847,6 +847,10 @@ rspamc_print_indented_line(FILE *out, std::string_view line) -> void
suffix = suffix.substr(delim_pos + 1);
}
else {
+ /* Check if we can include one last word */
+ if (delim_pos == std::string_view::npos && word_len + suffix.size() < split_len) {
+ word_len += suffix.size();
+ }
break;
}
}