Skip to content

Commit

Permalink
Revert "fix(util): timer to open file in vim (#5016)"
Browse files Browse the repository at this point in the history
This reverts commit 5c3bdc0.
  • Loading branch information
fannheyward committed May 23, 2024
1 parent b8455ab commit c3ae5c3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions autoload/coc/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,7 @@ function! coc#util#jump(cmd, filepath, ...) abort
elseif a:cmd ==# 'edit' && bufloaded(file)
exe 'b '.bufnr(file)
else
if s:is_vim
call timer_start(10, { -> s:safer_open(a:cmd, file)})
else
call s:safer_open(a:cmd, file)
endif
call 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 c3ae5c3

Please sign in to comment.