mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-21 23:14:54 +01:00
fix: bump codemp version, cancel promise
This commit is contained in:
parent
6094c7b7b8
commit
28b14eb761
2 changed files with 2 additions and 5 deletions
|
@ -38,7 +38,7 @@ end
|
|||
local sep = '/'
|
||||
if os_uname.sysname == "Windows_NT" then sep = '\\' end
|
||||
|
||||
local version = "v0.7.2"
|
||||
local version = "v0.7.3"
|
||||
|
||||
local native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."new-native."..ext
|
||||
local replace_native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."native."..ext
|
||||
|
|
|
@ -46,10 +46,7 @@ local function async_poller(generator, callback)
|
|||
timer = vim.uv.new_timer(),
|
||||
stop = function (this)
|
||||
if this.promise ~= nil then
|
||||
-- TODO the :abort() change still hasnt been merged, so check for its presence!
|
||||
if this.promise.abort ~= nil then
|
||||
this.promise:abort()
|
||||
end
|
||||
this.promise:cancel()
|
||||
end
|
||||
this.timer:stop()
|
||||
this.timer:close()
|
||||
|
|
Loading…
Reference in a new issue