mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-19 06:43:06 +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
|
# Remap <CR> to calling the callback and wiping the buffer
|
||||||
vim.command(
|
vim.command(
|
||||||
"nnoremap <silent> <buffer> <enter> :"
|
"nnoremap <silent> <buffer> <enter> :"
|
||||||
+ vim.vars['s:py'] +
|
+ vim.vars['s:py'].decode() +
|
||||||
"callback = pickle.loads("
|
"callback = pickle.loads("
|
||||||
"vim.current.buffer.vars['taskwiki_callback']); "
|
"vim.current.buffer.vars['taskwiki_callback']); "
|
||||||
"callback.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
|
# Remove cursorline in original window if it was this split which set it
|
||||||
if cursorline_activated_in_window is not None:
|
if cursorline_activated_in_window is not None:
|
||||||
vim.command("au BufLeave,BufDelete,BufWipeout <buffer> "
|
vim.command("au BufLeave,BufDelete,BufWipeout <buffer> "
|
||||||
+ vim.vars['py'] +
|
+ vim.vars['s:py'].decode() +
|
||||||
" vim.windows[{0}].options['cursorline']=False"
|
" vim.windows[{0}].options['cursorline']=False"
|
||||||
.format(cursorline_activated_in_window))
|
.format(cursorline_activated_in_window))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue