summaryrefslogtreecommitdiff
path: root/src/format.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/format.cc')
-rw-r--r--src/format.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/format.cc b/src/format.cc
index 946dcf80..93ce4ed4 100644
--- a/src/format.cc
+++ b/src/format.cc
@@ -540,7 +540,7 @@ string format_t::truncate(const unistring& ustr,
else
adjust = std::size_t
(std::ceil(double(overflow) *
- ((double(*i + counter) * double(iteration)) /
+ ((double(*i + counter*3) * double(iteration)) /
(double(len_minus_last) - double(counter)))));
DEBUG("format.abbrev", "Weight calc: (" << overflow
<< " * (((" << *i << " + " << counter << ") * "