niklaas / lightline-gitdiff

Show added, deleted and modified lines (`git diff`) in your statusline or lightline
Other
27 stars 4 forks source link

Shows "Addition" instead of "Modification" for two modifications in row #10

Closed niklaas closed 5 years ago

niklaas commented 5 years ago

Output of git diff --word-diff=porcelain --unified=0 -- filename:

diff --git a/[...].scss b/[...].scss
index 34e6b048..9a5b3619 100644
--- a/[...].scss
+++ b/[...].scss
@@ -1,2 +1,2 @@
 @import
-"../../../../variables";
+"../../../../../variables";
~
 @import
-"../../../../pages";
+"../../../../../pages";
~

Actual output of lightline#gitdiff#get():

A: 2

Expected output of lightline#gitdiff#get():

M: 2