diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2019-01-17 09:16:05 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2019-01-17 09:16:05 +0900 |
commit | ad9824d404afb350b978552cbdce10cbfa32ce68 (patch) | |
tree | f141556b49b6b546d9ffecb7e26d4073dd0d2f24 /autoload | |
parent | e3a095229e7c5da5b19950467ba963ccd522efc4 (diff) | |
download | deoplete.nvim-ad9824d404afb350b978552cbdce10cbfa32ce68.zip |
Fix #917 improve prev_completion behavior
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/deoplete/mapping.vim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/autoload/deoplete/mapping.vim b/autoload/deoplete/mapping.vim index 81e8f43..91646c9 100644 --- a/autoload/deoplete/mapping.vim +++ b/autoload/deoplete/mapping.vim @@ -21,8 +21,11 @@ function! deoplete#mapping#_complete() abort return '' endfunction function! deoplete#mapping#_prev_complete() abort - call complete(g:deoplete#_filtered_prev.complete_position + 1, - \ g:deoplete#_filtered_prev.candidates) + let mode = deoplete#custom#_get_option('prev_completion_mode') + if mode ==# 'mirror' || !pumvisible() + call complete(g:deoplete#_filtered_prev.complete_position + 1, + \ g:deoplete#_filtered_prev.candidates) + endif return '' endfunction |