python3: Data from the vim need to be decoded

This commit is contained in:
Tomas Babej 2016-12-16 03:52:04 +01:00
parent edb148cad4
commit ccf4ee1c43
2 changed files with 2 additions and 2 deletions

View file

@ -392,7 +392,7 @@ class CallbackSplitMixin(object):
# Remap <CR> to calling the callback and wiping the buffer
vim.command(
"nnoremap <silent> <buffer> <enter> :"
+ vim.vars['s:py'] +
+ vim.vars['s:py'].decode() +
"callback = pickle.loads("
"vim.current.buffer.vars['taskwiki_callback']); "
"callback.callback(); "

View file

@ -294,7 +294,7 @@ def show_in_split(lines, size=None, position="belowright", vertical=False,
# Remove cursorline in original window if it was this split which set it
if cursorline_activated_in_window is not None:
vim.command("au BufLeave,BufDelete,BufWipeout <buffer> "
+ vim.vars['py'] +
+ vim.vars['s:py'].decode() +
" vim.windows[{0}].options['cursorline']=False"
.format(cursorline_activated_in_window))