Skip to content

Commit cb0c0f1

Browse files
committed
fix header wrapping for powershell
1 parent 4e5800f commit cb0c0f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

diff-so-fancy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ strip_first_column () {
6464
print_horizontal_rule () {
6565
let width="$(tput cols)"
6666

67+
if [[ $(uname -s) =~ (MINGW32*|MSYS*) ]]; then
68+
width=$(( width - 1 ))
69+
fi
70+
6771
# echo -n '─' | hexdump -C
6872
local -r dash=$( printf "%b" "\xe2\x94\x80" )
6973
printf "%*s\n" "$width" | $SED "s/ /${dash}/g"

0 commit comments

Comments
 (0)