summaryrefslogtreecommitdiff
path: root/autoload/deoplete
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2020-01-30 07:39:32 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2020-01-30 07:39:32 +0900
commit9458f86d7a9f39323da2caa609c7dddddb65b30a (patch)
tree1b0247a2847f58fd631a069d2570043d1851fa9b /autoload/deoplete
parent4121320109172e3212c6c590f5ce1dc9dd756511 (diff)
downloaddeoplete.nvim-9458f86d7a9f39323da2caa609c7dddddb65b30a.zip
Fix scriptencoding error in Vim8
Diffstat (limited to 'autoload/deoplete')
-rw-r--r--autoload/deoplete/mapping.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/deoplete/mapping.vim b/autoload/deoplete/mapping.vim
index da028db..c9f28d5 100644
--- a/autoload/deoplete/mapping.vim
+++ b/autoload/deoplete/mapping.vim
@@ -4,6 +4,8 @@
" License: MIT license
"=============================================================================
+scriptencoding utf-8
+
function! deoplete#mapping#_init() abort
" Note: The dummy function is needed for cpoptions bug in neovim
inoremap <expr><silent> <Plug>_
@@ -27,8 +29,6 @@ function! s:check_completion_info(candidates) abort
return 1
endif
- scriptencoding utf-8
-
let input = getline('.')[: g:deoplete#_context.complete_position - 1]
if deoplete#util#check_eskk_phase_henkan()
\ && matchstr(input, '.$') =~# '[あ-ん]$'