Skip to content

Commit a30828a

Browse files
committed
Merge pull request #5 from mattn/hide_cursor_shape
Hide cursor shape
2 parents a277d35 + 96cf005 commit a30828a

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
@@ -885,17 +885,23 @@ fu! s:MapSpecs()
885885
endf
886886

887887
fu! s:KeyLoop()
888-
wh exists('s:init') && s:keyloop
889-
redr
890-
let nr = getchar()
891-
let chr = !type(nr) ? nr2char(nr) : nr
892-
if nr >=# 0x20
893-
cal s:PrtFocusMap(chr)
894-
el
895-
let cmd = matchstr(maparg(chr), ':<C-U>\zs.\+\ze<CR>$')
896-
exe ( cmd != '' ? cmd : 'norm '.chr )
897-
en
898-
endw
888+
let t_ve = &t_ve
889+
set t_ve=
890+
try
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
902+
fina
903+
let &t_ve = t_ve
904+
endt
899905
endf
900906
" * Toggling {{{1
901907
fu! s:ToggleFocus()

0 commit comments

Comments
 (0)