Skip to content
  • Duy Nguyen's avatar
    column: fix off-by-one default width · b5d5a567
    Duy Nguyen authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    By default we want to fill the whole screen if possible, but we do not
    want to use up _all_ terminal columns because the last character is
    going hit the border, push the cursor over and wrap. Keep it at
    default value zero, which will make print_columns() set the width at
    term_columns() - 1.
    
    This affects the test in t7004 because effective column width before
    was 40 but now 39 so we need to compensate it by one or the output at
    39 columns has a different layout.
    
    Signed-off-by: default avatarNguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    b5d5a567