X Tutup
Skip to content

Commit f9338c4

Browse files
committed
Merge pull request #203 from loyalpartner/develop
fix Chinese runtime error
2 parents 127476c + 0dd203f commit f9338c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/pymode/run.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fun! pymode#run#Run(line1, line2) "{{{
3131
python << EOF
3232
if out:
3333
vim.command("call pymode#TempBuffer()")
34-
vim.current.buffer.append([x.encode(enc) for x in out.split('\n')], 0)
34+
vim.current.buffer.append([x.decode("utf-8").encode(enc) for x in out.split('\n')], 0)
3535
vim.command("wincmd p")
3636
else:
3737
vim.command('call pymode#WideMessage("No output.")')

0 commit comments

Comments
 (0)
X Tutup