summaryrefslogtreecommitdiff
path: root/t/t7004-tag.sh
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-05-11 12:13:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-05-13 01:45:05 (GMT)
commitb5d5a567fbc1eda911f91a8c78731028065bbed8 (patch)
tree768b6880337cd554114ae4a67a27809550f6e396 /t/t7004-tag.sh
parentbe11f7ad60fb9e114891db993830e57fef9989ea (diff)
downloadgit-b5d5a567fbc1eda911f91a8c78731028065bbed8.zip
git-b5d5a567fbc1eda911f91a8c78731028065bbed8.tar.gz
git-b5d5a567fbc1eda911f91a8c78731028065bbed8.tar.bz2
column: fix off-by-one default width
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: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t7004-tag.sh')
-rwxr-xr-xt/t7004-tag.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh
index 2aac77a..afb8c75 100755
--- a/t/t7004-tag.sh
+++ b/t/t7004-tag.sh
@@ -363,7 +363,7 @@ test_expect_success 'tag -l <pattern> -l <pattern> works, as our buggy documenta
'
test_expect_success 'listing tags in column' '
- COLUMNS=40 git tag -l --column=row >actual &&
+ COLUMNS=41 git tag -l --column=row >actual &&
cat >expected <<\EOF &&
a1 aa1 cba t210 t211
v0.2.1 v1.0 v1.0.1 v1.1.3