File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 442
442
inoremap <expr> <C-g> neocomplcache#undo_completion()
443
443
inoremap <expr> <C-l> neocomplcache#complete_common_string()
444
444
445
- " <CR>: close popup
445
+
446
+ " <CR>: close popup
446
447
" <s-CR>: close popup and save indent.
447
- inoremap <expr> <CR> neocomplcache#close_popup()
448
- inoremap <expr> <s-CR> neocomplcache#close_popup() . "\<CR> "
448
+ inoremap <expr> <CR> pumvisible() ? neocomplcache#close_popup() : "\ <CR> "
449
+ inoremap <expr> <s-CR> pumvisible() ? neocomplcache#close_popup() "\ <CR> " : "\<CR> "
449
450
" <TAB>: completion.
450
- " inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
451
+ inoremap <expr> <TAB> pumvisible() ? "\<C-n> " : "\<TAB> "
451
452
452
453
" <C-h>, <BS>: close popup and delete backword char.
453
454
inoremap <expr> <C-h> neocomplcache#smart_close_popup()."\<C-h> "
You can’t perform that action at this time.
0 commit comments