win/package: nvim-qt v0.2.6 (#6258)

This commit is contained in:
Justin M. Keyes
2017-03-11 16:00:26 +01:00
committed by GitHub
parent 6493ffac1f
commit b2b15e6e13
2 changed files with 10 additions and 2 deletions

View File

@@ -4,6 +4,14 @@ if !has('win32') || !has('nvim') || exists('g:GuiLoaded')
endif
let g:GuiLoaded = 1
" Close the GUI
function! GuiClose() abort
call rpcnotify(0, 'Gui', 'Close')
endfunction
" Notify the GUI when exiting Neovim
autocmd VimLeave * call GuiClose()
" A replacement for foreground()
function! GuiForeground() abort
call rpcnotify(0, 'Gui', 'Foreground')