niklaas / lightline-gitdiff

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

fix: remove superfluous separators if indicators are missing #6

Closed niklaas closed 5 years ago

niklaas commented 5 years ago

b/c join() adds a separator between elements even if they are an empty string ( ), in this commit, these elements are removed before joining. In addition, I refactored formatting indicator keys and their corresponding value to remove redundant code.

fixes #5