Skip to content

Commit 96cf005

Browse files
committed
Hide cursor shape
1 parent b5d3fe6 commit 96cf005

1 file changed

Lines changed: 17 additions & 11 deletions

File tree

autoload/ctrlp.vim

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -888,17 +888,23 @@ fu! s:MapSpecs()
888888
endf
889889

890890
fu! s:KeyLoop()
891-
wh exists('s:init') && s:keyloop
892-
redr
893-
let nr = getchar()
894-
let chr = !type(nr) ? nr2char(nr) : nr
895-
if nr >=# 0x20
896-
cal s:PrtFocusMap(chr)
897-
el
898-
let cmd = matchstr(maparg(chr), ':<C-U>\zs.\+\ze<CR>$')
899-
exe ( cmd != '' ? cmd : 'norm '.chr )
900-
en
901-
endw
891+
let t_ve = &t_ve
892+
set t_ve=
893+
try
894+
wh exists('s:init') && s:keyloop
895+
redr
896+
let nr = getchar()
897+
let chr = !type(nr) ? nr2char(nr) : nr
898+
if nr >=# 0x20
899+
cal s:PrtFocusMap(chr)
900+
el
901+
let cmd = matchstr(maparg(chr), ':<C-U>\zs.\+\ze<CR>$')
902+
exe ( cmd != '' ? cmd : 'norm '.chr )
903+
en
904+
endw
905+
fina
906+
let &t_ve = t_ve
907+
endt
902908
endf
903909
" * Toggling {{{1
904910
fu! s:ToggleFocus()

0 commit comments

Comments
 (0)