mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 10:50:05 +08:00
Hide curosr when guide buffer is open
This commit is contained in:
parent
aeccca71b6
commit
3bc5e5e4df
@ -401,6 +401,7 @@ function! s:winopen() " {{{
|
||||
setlocal nocursorline nocursorcolumn colorcolumn=
|
||||
setlocal winfixwidth winfixheight
|
||||
call s:updateStatusline()
|
||||
call s:toggle_hide_cursor()
|
||||
endfunction " }}}
|
||||
|
||||
function! s:updateStatusline() abort
|
||||
@ -428,7 +429,16 @@ function! s:guide_help_msg() abort
|
||||
return substitute(msg,' ', '\\ ', 'g')
|
||||
endfunction
|
||||
|
||||
let s:t_ve = ''
|
||||
function! s:toggle_hide_cursor() abort
|
||||
let t_ve = &t_ve
|
||||
let &t_ve = s:t_ve
|
||||
let s:t_ve = t_ve
|
||||
endfunction
|
||||
|
||||
|
||||
function! s:winclose() " {{{
|
||||
call s:toggle_hide_cursor()
|
||||
noautocmd execute s:gwin.'wincmd w'
|
||||
if s:gwin == winnr()
|
||||
noautocmd close
|
||||
|
Loading…
Reference in New Issue
Block a user