Skip to content

Commit 5afcb95

Browse files
committed
add ctrlp mode variable
1 parent 730bffd commit 5afcb95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/ctrlp/cmdpalette.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ endfunction
9898
func! ctrlp#cmdpalette#accept(mode, str)
9999
call ctrlp#exit()
100100
redraw
101+
let g:ctrlp_open_mode = a:mode
102+
let g:ctrlp_open_cmd = a:str
101103
call feedkeys(':', 'n')
102104
call feedkeys(split(a:str, '\t')[0], 'n')
103105
if a:mode == 'e' && g:ctrlp_cmdpalette_execute == 1

0 commit comments

Comments
 (0)