Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita2b752f

Browse files
committed
Fix code run
1 parent412b5c5 commita2b752f

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

‎Changelog.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ Changelog
99
* Added pymode modeline ':help PythonModeModeline'
1010
* Added diagnostic tool ':call pymode#troubleshooting#Test()'
1111
* Added `PyLintAuto` command ':help PyLintAuto'
12-
* Now Code checking is async operation
13-
* Improve speed of pymode folding
12+
* Code checking is async operation now
13+
* More, more fast the pymode folding
14+
* Repair python code run
1415

1516
## 2012-05-24 0.6.4
1617
-------------------

‎autoload/pymode.vim

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,3 @@ endfunction "}}}
175175

176176

177177
" vim:fdm=marker:fdl=0
178-
179-
180-

‎autoload/pymode/run.vim

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@ fun! pymode#run#Run(line1, line2) "{{{
33
if &modifiable&& &modified |write |endif
44
pyimport StringIO
55
py sys.stdout, _= StringIO.StringIO(), sys.stdout
6-
pyexecfile(vim.eval('expand("%s:p")'), {}, {})
7-
py sys.stdout, out= _, sys.stdout.getvalue()
8-
callpymode#TempBuffer()
9-
pyvim.current.buffer.append(out.split('\n'),0)
10-
wincmdp
6+
callpymode#WideMessage("Code running.")
7+
try
8+
pyexecfile(vim.eval('expand("%s:p")'))
9+
py sys.stdout, out= _, sys.stdout.getvalue()
10+
callpymode#TempBuffer()
11+
pyvim.current.buffer.append(out.split('\n'),0)
12+
wincmdp
13+
callpymode#WideMessage("")
14+
15+
catch/.*/
16+
17+
echohlError |echo"Run-time error." |echohlnone
18+
19+
endtry
1120
endfunction"}}}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp