mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
default encoding for VIM compiled with -multibyte, fixes #100
This commit is contained in:
@@ -39,7 +39,7 @@ def get_script(source=None, column=None):
|
||||
if column is None:
|
||||
column = vim.current.window.cursor[1]
|
||||
buf_path = vim.current.buffer.name
|
||||
encoding = vim.eval('&encoding')
|
||||
encoding = vim.eval('&encoding') or 'latin1'
|
||||
return jedi.Script(source, row, column, buf_path, encoding)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user