Closed sudo-tee closed 4 months ago
I have an issue where everytime I open nvim a NUL file is created on linux
NUL
I investigated and found that the issue was with the way windows detection is done in the file git.lua
local is_windows = vim.fn.has("win32")
is_windows will be 0 at that point and
0
local null = is_windows and "NUL" or "/dev/null"
Since lua does not interpret 0 as being false the null file is then 'NUL'
the windows check sould be
local is_windows = vim.fn.has("win32") == 1
Thanks for your great plugin
Thanks for checking this and sharing the corrected check!
I have an issue where everytime I open nvim a
NUL
file is created on linuxI investigated and found that the issue was with the way windows detection is done in the file git.lua
is_windows will be
0
at that point andSince lua does not interpret
0
as being false the null file is then 'NUL'the windows check sould be
Thanks for your great plugin