Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move FirenvimUIEnterAugroup creation to firenvim#run for #1660 #1662

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions autoload/firenvim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ function! firenvim#run() abort
endtry
call WriteStdout(a:id, l:response)
endfunction
" #1660: only create the Firenvim augroup when firenvim#run has been
" called in order to prevent issues with Vim.
augroup FirenvimUIEnterAugroup
autocmd!
autocmd UIEnter * call firenvim#onUIEnter(deepcopy(v:event))
augroup END
" g:firenvim_c might not exist for firenvim installations dating back
" to 2021 and earlier.
if exists('g:firenvim_c')
Expand Down
5 changes: 0 additions & 5 deletions plugin/firenvim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,3 @@ if exists('g:firenvim_loaded')
finish
endif
let g:firenvim_loaded = 1

augroup FirenvimUIEnterAugroup
autocmd!
autocmd UIEnter * call firenvim#onUIEnter(deepcopy(v:event))
augroup END
Loading