Skip to content
  • Steffen Prohaska's avatar
    shortlog: fix wrapping lines of wraplen · 5b597082
    Steffen Prohaska authored and Junio C Hamano's avatar Junio C Hamano committed
    A recent commit [1] fixed a off-by-one wrapping error.  As a
    side-effect, the conditional in add_wrapped_shortlog_msg() to decide
    whether to append a newline needs to be removed.  The function
    should always append a newline, which was the case before the
    off-by-one fix, because strbuf_add_wrapped_text() never returns a
    value of wraplen; when it returns wraplen, the string does not end
    with a newline, so this caller needs to add one anyway.
    
    [1] 14e1a4e1
    
     utf8: fix off-by-one
        wrapping of text
    
    Signed-off-by: default avatarSteffen Prohaska <prohaska@zib.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    5b597082