We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 79db2a3 + 6496515 commit 65adcf7Copy full SHA for 65adcf7
autoload/ctrlp/cmdpalette.vim
@@ -98,10 +98,14 @@ endfunction
98
func! ctrlp#cmdpalette#accept(mode, str)
99
call ctrlp#exit()
100
redraw
101
+ let g:ctrlp_open_mode = a:mode
102
+ let g:ctrlp_open_cmd = a:str
103
call feedkeys(':', 'n')
104
call feedkeys(split(a:str, '\t')[0], 'n')
- if g:ctrlp_cmdpalette_execute == 1
105
+ if a:mode == 'e' && g:ctrlp_cmdpalette_execute == 1
106
call feedkeys("\<CR>", 'n')
107
+ else
108
+ call feedkeys(" ", 'n')
109
endif
110
call remove(s:cmdpalette_commands, index(s:cmdpalette_commands, a:str))
111
call insert(s:cmdpalette_commands, a:str)
0 commit comments