Open kris-swann opened 1 month ago
git init test && cd test
echo "test\ntest\ntest" | tee "test.txt" "test this.txt"
git add -A && git commit -m "Test this"
echo "test\ntest" | tee -a "test.txt" "test this.txt"
./nvim_isolated_conf.sh -c foo
./nvim_isolated_conf.sh -l foo .
:PlugInstall
:qa
+2 diff shows in both test.txt and test this.txt
+2
test.txt
test this.txt
+2 diff shows in test.txt but not test this.txt
Default config, no changes made
I assume it's just a matter of quoting the args here?
https://github.com/nvim-lualine/lualine.nvim/blob/0a5a66803c7407767b799067986b4dc3036e1983/lua/lualine/components/diff/git_diff.lua#L96
Self Checks
How to reproduce the problem
git init test && cd test
echo "test\ntest\ntest" | tee "test.txt" "test this.txt"
git add -A && git commit -m "Test this"
echo "test\ntest" | tee -a "test.txt" "test this.txt"
./nvim_isolated_conf.sh -c foo
'./nvim_isolated_conf.sh -l foo .
:PlugInstall
:qa
./nvim_isolated_conf.sh -l foo .
Expected behaviour
+2
diff shows in bothtest.txt
andtest this.txt
Actual behaviour
+2
diff shows intest.txt
but nottest this.txt
Minimal config to reproduce the issue
Default config, no changes made
Additional information
I assume it's just a matter of quoting the args here?
https://github.com/nvim-lualine/lualine.nvim/blob/0a5a66803c7407767b799067986b4dc3036e1983/lua/lualine/components/diff/git_diff.lua#L96