Skip to content

Commit 2a1c203

Browse files
committed
Suppress exception
Typing <DEL> on MRU list with KeyLoop(), E21 occured.
1 parent 23a4fc2 commit 2a1c203

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

autoload/ctrlp.vim

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,10 @@ fu! s:KeyLoop()
940940
cal s:PrtFocusMap(chr)
941941
el
942942
let cmd = matchstr(maparg(chr), ':<C-U>\zs.\+\ze<CR>$')
943-
exe ( cmd != '' ? cmd : 'norm '.chr )
943+
try
944+
exe ( cmd != '' ? cmd : 'norm '.chr )
945+
cat
946+
endt
944947
en
945948
endw
946949
fina

0 commit comments

Comments
 (0)