mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 10:40:04 +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 nocursorline nocursorcolumn colorcolumn=
|
||||||
setlocal winfixwidth winfixheight
|
setlocal winfixwidth winfixheight
|
||||||
call s:updateStatusline()
|
call s:updateStatusline()
|
||||||
|
call s:toggle_hide_cursor()
|
||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
|
|
||||||
function! s:updateStatusline() abort
|
function! s:updateStatusline() abort
|
||||||
@ -428,7 +429,16 @@ function! s:guide_help_msg() abort
|
|||||||
return substitute(msg,' ', '\\ ', 'g')
|
return substitute(msg,' ', '\\ ', 'g')
|
||||||
endfunction
|
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() " {{{
|
function! s:winclose() " {{{
|
||||||
|
call s:toggle_hide_cursor()
|
||||||
noautocmd execute s:gwin.'wincmd w'
|
noautocmd execute s:gwin.'wincmd w'
|
||||||
if s:gwin == winnr()
|
if s:gwin == winnr()
|
||||||
noautocmd close
|
noautocmd close
|
||||||
|
Loading…
Reference in New Issue
Block a user