Skip to content

Commit

Permalink
fix: dummmy user autocmds
Browse files Browse the repository at this point in the history
Vim requires User autocmds to exist before emitting them.

See #98
  • Loading branch information
rcarriga committed Jan 30, 2022
1 parent 00da9ea commit 616bbca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugin/ultest.vim
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,14 @@ augroup UltestPositionUpdater
endif
augroup END

if !has("nvim")
augroup UltestDummyCommand
au!
au User UltestPositionsUpdate let <SID>dummy = 1
au User UltestOutputOpen let <SID>dummy = 1
augroup END
endif

if !has("vim_starting")
" Avoids race condition https://github.com/neovim/pynvim/issues/341
call ultest#handler#get_attach_script("")
Expand Down

0 comments on commit 616bbca

Please sign in to comment.