aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/install.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index 2c564b9ab..893f95361 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -322,13 +322,9 @@ end
local function do_install(logger, compile_location, target_location)
logger:info(string.format('Installing parser'))
- if uv.os_uname().sysname == 'Windows_NT' then -- why can't you just be normal?!
- local tempfile = target_location .. tostring(uv.hrtime())
- uv_rename(target_location, tempfile) -- parser may be in use: rename...
- uv_unlink(tempfile) -- ...and mark for garbage collection
- else
- uv_unlink(target_location) -- don't disturb existing memory-mapped content
- end
+ local tempfile = target_location .. tostring(uv.hrtime())
+ uv_rename(target_location, tempfile) -- parser may be in use: rename...
+ uv_unlink(tempfile) -- ...and mark for garbage collection
local err = uv_copyfile(compile_location, target_location)
a.schedule()