Skip to content

Commit

Permalink
runtime: notify the GUI when Neovim is exiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Abreu Ferreira authored and equalsraf committed Mar 7, 2017
1 parent b84c3d8 commit 69e9b97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/runtime/plugin/nvim_gui_shim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ if !has('nvim') || exists('g:GuiLoaded')
endif
let g:GuiLoaded = 1

" Notify the GUI when exiting Neovim
autocmd VimLeave * call rpcnotify(0, 'Gui', 'Close')"

" A replacement for foreground()
function! GuiForeground() abort
call rpcnotify(0, 'Gui', 'Foreground')
Expand Down

0 comments on commit 69e9b97

Please sign in to comment.