Put cursor inside the installer window after post-update hook

https://github.com/chrisbra/unicode.vim/issues/16
This commit is contained in:
Junegunn Choi
2016-06-16 22:17:03 +09:00
parent cb5bed0e35
commit 05a1620bb1
5 changed files with 78 additions and 59 deletions

View File

@@ -793,6 +793,7 @@ function! s:do(pull, force, todo)
else
let error = 'Invalid hook type'
endif
call s:switch_in()
call setline(4, empty(error) ? (getline(4) . 'OK')
\ : ('x' . getline(4)[1:] . error))
if !empty(error)