Commits

Takeshi NISHIDA committed 531d621

Changed the way of auto-popup for avoiding an issue about filename completion.

  • Participants
  • Parent commits 9740406

Comments (0)

Files changed (2)

 
 "
 function acp#onPopupPost()
+  " to clear <C-r>= expression on command-line
+  echo ''
   if pumvisible()
     inoremap <silent> <expr> <C-h> acp#onBs()
     inoremap <silent> <expr> <BS>  acp#onBs()
   call s:setTempOption(s:GROUP1, 'textwidth', 0)
   call s:setCompletefunc()
   " use <Plug> for silence instead of <C-r>=
-  call feedkeys(s:behavsCurrent[s:iBehavs].command, 'n')
-  call feedkeys("\<Plug>AcpOnPopupPost", 'm')
+  call feedkeys(s:behavsCurrent[s:iBehavs].command . "\<C-r>=acp#onPopupPost()\<CR>", 'n')
   return '' " for <C-r>=
 endfunction
 
 let s:tempOptionSet = [{}, {}]
 let s:snipItems = {}
 
-inoremap <silent> <expr> <Plug>AcpOnPopupPost acp#onPopupPost()
-
-
 " }}}1
 "=============================================================================
 " vim: set fdm=marker:
 ==============================================================================
 CHANGELOG                                                      *acp-changelog*
 
+2.14.1 [TODO]
+  - Changed the way of auto-popup for avoiding an issue about filename
+    completion.
+
 2.14
   - Added the support for perl-completion.vim.