nvim-lualine / lualine.nvim

A blazing fast and easy to configure neovim statusline plugin written in pure lua.
MIT License
5.71k stars 455 forks source link

Bug: Git diff doesn't work if file name contains spaces #1238

Open kris-swann opened 1 month ago

kris-swann commented 1 month ago

Self Checks

How to reproduce the problem

Expected behaviour

+2 diff shows in both test.txt and test this.txt

Actual behaviour

+2 diff shows in test.txt but not test 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