Skip to content

Commit 31b3aca

Browse files
committed
Hide cursor when using keyloop
1 parent 386a49a commit 31b3aca

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

autoload/ctrlp.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,8 +928,9 @@ fu! s:MapSpecs()
928928
endf
929929

930930
fu! s:KeyLoop()
931-
let t_ve = &t_ve
931+
let [t_ve, guicursor] = [&t_ve, &guicursor]
932932
set t_ve=
933+
set guicursor=a:NONE
933934
try
934935
wh exists('s:init') && s:keyloop
935936
let nr = getchar()
@@ -943,6 +944,7 @@ fu! s:KeyLoop()
943944
endw
944945
fina
945946
let &t_ve = t_ve
947+
let &guicursor = guicursor
946948
endt
947949
endf
948950
" * Toggling {{{1

0 commit comments

Comments
 (0)