summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-04-29 21:01:07 -0400
committerDan Davison <dandavison7@gmail.com>2020-04-30 00:08:20 -0400
commitaf1e2d663ced3d1248f7e2f9b8cfe693ca395b21 (patch)
treed17623a2a3eaf0825e6a30d11844d149e596645d /tests
parentb8d5cd3775624af6866c77113955840f821753ff (diff)
Use ANSI CSI "Erase in Line" code instead of right-padding
Fixes #136
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_color_only_output_matches_git_on_full_repo_history2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_color_only_output_matches_git_on_full_repo_history b/tests/test_color_only_output_matches_git_on_full_repo_history
index ebe656e2..68511bd6 100755
--- a/tests/test_color_only_output_matches_git_on_full_repo_history
+++ b/tests/test_color_only_output_matches_git_on_full_repo_history
@@ -1,3 +1,3 @@
#!/bin/bash
GIT_ARGS="log --patch --stat --numstat"
-diff -u <(git $GIT_ARGS) <(git $GIT_ARGS | ./target/release/delta --color-only | perl -pe 's/\e\[[0-9;]*m//g')
+diff -u <(git $GIT_ARGS) <(git $GIT_ARGS | ./target/release/delta --color-only | perl -pe 's/\e\[[0-9;]*[mK]//g')