Skip to content

Commit

Permalink
fix(util): timer for coc#util#open
Browse files Browse the repository at this point in the history
Closes #5011
  • Loading branch information
fannheyward committed May 21, 2024
1 parent d33fbed commit 7f84eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/coc/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function! coc#util#jump(cmd, filepath, ...) abort
elseif a:cmd ==# 'edit' && bufloaded(file)
exe 'b '.bufnr(file)
else
call s:safer_open(a:cmd, file)
call timer_start(s:is_vim ? 10 : 0, { -> s:safer_open(a:cmd, file)})
endif
if !empty(get(a:, 1, []))
let line = getline(a:1[0] + 1)
Expand Down

0 comments on commit 7f84eea

Please sign in to comment.