diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2017-05-03 14:24:34 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2017-05-03 14:24:34 +0900 |
commit | a2ed3d7d664c6e609f63d54271313bedecddeff7 (patch) | |
tree | 3d990c733403bb956069f8360ecf08ebfb47ceb3 | |
parent | fbaede26d2a0eab8577b4b91f8ae53b9d723632b (diff) | |
download | deoplete.nvim-a2ed3d7d664c6e609f63d54271313bedecddeff7.zip |
Use buffer filetype in buffer source
-rw-r--r-- | rplugin/python3/deoplete/source/buffer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rplugin/python3/deoplete/source/buffer.py b/rplugin/python3/deoplete/source/buffer.py index 326a119..2049ca2 100644 --- a/rplugin/python3/deoplete/source/buffer.py +++ b/rplugin/python3/deoplete/source/buffer.py @@ -43,7 +43,7 @@ class Source(Base): try: self.__buffers[bufnr] = { 'bufnr': bufnr, - 'filetype': context['filetype'], + 'filetype': self.vim.buffers[bufnr].options['filetype'], 'candidates': parse_buffer_pattern( getlines(self.vim), context['keyword_patterns'], |