# HG changeset patch
# User Henrik Stuart <henrik.stu...@edlund.dk>
# Date 1255694720 -7200
# Branch stable
# Node ID 1a4b7396fbaa0e3e98eb473b7a78736fc1eb7ab0
# Parent  7309a8ee1daf9b75062b9840fa1b95fd69ad9811
commit: fix off-by-one in reflow

diff -r 7309a8ee1daf -r 1a4b7396fbaa tortoisehg/hgtk/commit.py
--- a/tortoisehg/hgtk/commit.py Sun Oct 25 17:00:09 2009 -0500
+++ b/tortoisehg/hgtk/commit.py Fri Oct 16 14:05:20 2009 +0200
@@ -559,7 +559,7 @@
         new_sentence = ['']
 
         for part in parts:
-            if len(new_sentence[-1]) + len(part) > line_width:
+            if len(new_sentence[-1]) + len(part) + 1 > line_width:
                 new_sentence.append('')
                 
             new_sentence[-1] += '%s ' % part

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to