We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b18ec02 commit 1af2be4Copy full SHA for 1af2be4
test/bugs.bats
@@ -23,3 +23,11 @@ empty_remove_highlight="[m[1;31;48;5;52m[m[1;31m"
23
24
assert_line --index 1 --regexp "added:.*a b"
25
}
26
+
27
+@test "Vanilla diff with add/remove empty lines (#366)" {
28
+ output=$( load_fixture "add_remove_empty_lines" | $diff_so_fancy )
29
+ run printf "%s" "$output"
30
31
+ assert_line --index 5 --partial "[7m[1;32"
32
+ assert_line --index 8 --partial "[7m[1;31"
33
+}
test/fixtures/add_remove_empty_lines.diff
@@ -0,0 +1,9 @@
1
+--- one.txt 2020-04-23 10:15:29.193452325 -0700
2
++++ two.txt 2020-04-23 10:15:37.634463619 -0700
3
+@@ -1,5 +1,5 @@
4
+ 1
5
++
6
+ 2
7
+ 3
8
+-
9
+ 4
0 commit comments