Skip to content

Commit 32f5c1d

Browse files
Potential fix for #469
1 parent 006ede3 commit 32f5c1d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

test/bugs.bats

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,9 @@ teardown_file() {
7575
run printf "%s" "$output"
7676
assert_line --index 3 --partial "@ height"
7777
}
78+
79+
@test "ANSI reset without leading zero (#469)" {
80+
output=$( load_fixture "ansi_reset_without_zero" | $diff_so_fancy )
81+
run printf "%s" "$output"
82+
assert_line --index 4 --partial 'Hello'
83+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--- /tmp/baker/one.txt 2023-06-08 14:48:26.883146532 -0700
2+
+++ /tmp/baker/two.txt 2023-06-08 14:48:35.080137160 -0700
3+
@@ -1 +1 @@
4+
-Hello world
5+
+Hello Jason

0 commit comments

Comments
 (0)