Skip to content

Commit 4708509

Browse files
committed
Async.Promise: Add l: prefix to variable for funcref
Without l: prefix, "E705: Variable name conflicts with existing function" will be thrown if user defines same name global function.
1 parent 08087a6 commit 4708509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/vital/__vital__/Async/Promise.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function! s:_chain(promise_factories, results) abort
278278
if len(a:promise_factories) is# 0
279279
return s:resolve(a:results)
280280
endif
281-
let Factory = remove(a:promise_factories, 0)
281+
let l:Factory = remove(a:promise_factories, 0)
282282
try
283283
return Factory()
284284
\.then({ v -> add(a:results, v) })

0 commit comments

Comments
 (0)