Commits

Takeshi NISHIDA committed 531d621

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

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.
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.