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

Skip to content

Commit 668eb8d

Browse files
committed
Fix RopeShowDoc
1 parent b8cce86 commit 668eb8d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
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+
## 2011-10-30 0.3.3
5+
-------------------
6+
* Fix RopeShowDoc
7+
48
## 2011-10-28 0.3.2
59
-------------------
610
* Add 'g:pymode_options_*' stuff, for ability

pylibs/ropevim.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ def _writedefs(locations, filename):
249249

250250
def show_doc(self, docs, altview=False):
251251
if docs:
252-
vim.command("call helpers#ShowPreview('%s')" % docs)
252+
cmd = 'call helpers#ShowPreview("%s")' % str(docs.replace('"', '\\"'))
253+
print cmd
254+
vim.command(cmd)
253255

254256
def preview_changes(self, diffs):
255257
echo(diffs)

0 commit comments

Comments
 (0)