Skip to content

Commit 4a5de44

Browse files
paulodiovanitimfeirg
authored andcommitted
Fix arrow keys when using true color config
1 parent 792f04b commit 4a5de44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/ctrlp.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ fu! s:MapSpecs()
10651065
if !( exists('s:smapped') && s:smapped == s:bufnr )
10661066
" Correct arrow keys in terminal
10671067
if ( has('termresponse') && v:termresponse =~ "\<ESC>" )
1068-
\ || &term =~? '\vxterm|<k?vt|gnome|screen|linux|ansi|tmux|st(-[-a-z0-9]*)?$'
1068+
\ || &term =~? '\vxterm|<k?vt|gnome|screen|linux|ansi|tmux|st(-[-a-z0-9]*)?(\:tc)?$'
10691069
for each in ['\A <up>','\B <down>','\C <right>','\D <left>']
10701070
exe s:lcmap.' <esc>['.each
10711071
endfo

0 commit comments

Comments
 (0)