mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 12:10:05 +08:00
Fix guide cursor
This commit is contained in:
parent
3ccb6d78b6
commit
b2e7aff440
@ -311,7 +311,6 @@ function! s:highlight_cursor() abort
|
|||||||
hi def link SpaceVimGuideCursor Cursor
|
hi def link SpaceVimGuideCursor Cursor
|
||||||
call s:VIMH.hi(info)
|
call s:VIMH.hi(info)
|
||||||
let s:cursor_hi = matchaddpos('SpaceVimGuideCursor', [[line('.'), col('.'), 1]])
|
let s:cursor_hi = matchaddpos('SpaceVimGuideCursor', [[line('.'), col('.'), 1]])
|
||||||
let g:wsd = s:cursor_hi
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:remove_cursor_highlight() abort
|
function! s:remove_cursor_highlight() abort
|
||||||
@ -460,7 +459,6 @@ endfunction
|
|||||||
|
|
||||||
|
|
||||||
function! s:winclose() " {{{
|
function! s:winclose() " {{{
|
||||||
call s:remove_cursor_highlight()
|
|
||||||
call s:toggle_hide_cursor()
|
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()
|
||||||
@ -471,6 +469,7 @@ function! s:winclose() " {{{
|
|||||||
noautocmd execute s:winnr.'wincmd w'
|
noautocmd execute s:winnr.'wincmd w'
|
||||||
call winrestview(s:winv)
|
call winrestview(s:winv)
|
||||||
endif
|
endif
|
||||||
|
call s:remove_cursor_highlight()
|
||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
function! s:page_down() " {{{
|
function! s:page_down() " {{{
|
||||||
call feedkeys("\<c-c>", "n")
|
call feedkeys("\<c-c>", "n")
|
||||||
|
Loading…
Reference in New Issue
Block a user