Skip to content

Commit 1d60548

Browse files
committed
Fix pymode_run.
1 parent 6cf0c64 commit 1d60548

File tree

5 files changed

+12
-5
lines changed

5 files changed

+12
-5
lines changed

Changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
## 2012-03-?? 0.6.1
5+
-------------------
6+
* Fix pymode_run for "unnamed" clipboard
7+
48
## 2012-03-13 0.6.0
59
-------------------
610
* Add 'pymode_lint_hold' option

autoload/pymode.vim

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,12 @@ endfunction "}}}
7474
fun! pymode#ShowStr(str) "{{{
7575
" DESC: Open temp buffer with `str`.
7676
"
77+
let g:pymode_curbuf = bufnr("%")
7778
call pymode#TempBuffer()
7879
put! =a:str
7980
redraw
80-
normal gg | wincmd p
81+
normal gg
82+
wincmd p
8183
endfunction "}}}
8284

8385

@@ -92,7 +94,8 @@ fun! pymode#ShowCommand(cmd) "{{{
9294
echoerr 'Command fail: '.a:cmd
9395
endtry
9496
redraw
95-
normal gg | wincmd p
97+
normal gg
98+
wincmd p
9699
endfunction "}}}
97100

98101

autoload/pymode/run.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ fun! pymode#run#Run(line1, line2) "{{{
55
sil!py execfile(vim.eval('expand("%s:p")'))
66
redi END
77
call pymode#TempBuffer()
8-
normal Pdd
8+
normal ""Pdd
99
wincmd p
1010
endfunction "}}}

doc/pymode.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(__) (__) (__) (_) (_)(_____)(_)\_) (_/\/\_)(_____)(____/(____) ~
77

88

9-
Version: 0.6.0
9+
Version: 0.6.1
1010

1111
==============================================================================
1212
CONTENTS *Python-mode-contents*

plugin/pymode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let g:pymode_version = "0.6.0"
1+
let g:pymode_version = "0.6.1"
22

33
com! PymodeVersion echomsg "Current python-mode version: " . g:pymode_version
44

0 commit comments

Comments
 (0)