mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
python3: Data from the vim need to be decoded
This commit is contained in:
parent
edb148cad4
commit
ccf4ee1c43
2 changed files with 2 additions and 2 deletions
|
@ -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(); "
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue