+2008-01-29 21:06 -0800 Brendan Cully <brendan@kublai.com> (fd741c1922f3)
+
+ * hg-commit: Fix typo in hg-commit
+
+2008-01-29 21:05 -0800 Benno Schulenberg <i18n@benno.vertaalt.nl> (95807c4b824f)
+
+ * ChangeLog, po/nl.po: Improvements to the Dutch translation
+
2008-01-17 17:32 +0100 Rocco Rutte <pdmef@gmx.net> (039d939d8c3e)
* browser.h: Use 'unsigned int' for file browser state to browse huge
}
else if (soft && pad < 0)
{
- /* set wptr and wlen back just enough bytes to make sure buf
- * fits on screen, \0-terminate dest so mutt_wstr_trunc()
- * can correctly compute string's length */
- if (pad < -wlen)
- pad = -wlen;
+ /* \0-terminate dest for length computation in mutt_wstr_trunc() */
*wptr = 0;
- wlen = mutt_wstr_trunc (dest, wlen + pad, col + pad, &col);
+ /* make sure right part is as most as wide as display */
+ len = mutt_wstr_trunc (buf, destlen, COLS, &wid);
+ /* truncate left so that right part fits completely in */
+ wlen = mutt_wstr_trunc (dest, destlen - len, COLS - wid, &col);
wptr = dest + wlen;
}
if (len + wlen > destlen)