Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit affff75

Browse files
committed
Merge branch 'develop' of github.com:klen/python-mode into develop
2 parents fe3c1a7 + fe5cda1 commit affff75

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-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.")')

doc/pymode.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ buffers: >
371371
setlocal number
372372
setlocal nowrap
373373
setlocal textwidth=80
374+
setlocal commentstring=#%s
374375
<
375376
------------------------------------------------------------------------------
376377
*'pymode_motion'*

ftplugin/python/pymode.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if pymode#Option('options')
2626
endif
2727
setlocal nowrap
2828
setlocal textwidth=79
29+
setlocal commentstring=#%s
2930
endif
3031

3132
" }}}

0 commit comments

Comments
 (0)