Skip to content

Commit 9017393

Browse files
committed
fix for vim with -multi_byte (no 'encoding')
1 parent 2ae497d commit 9017393

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/python/ipy.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import vim
2626
import sys
2727

2828
# get around unicode problems when interfacing with vim
29-
vim_encoding=vim.eval('&encoding')
29+
vim_encoding=vim.eval('&encoding') or 'utf-8'
3030

3131
try:
3232
sys.stdout.flush

0 commit comments

Comments
 (0)