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

Skip to content

Commit eff36e7

Browse files
committed
Merge pull request python-mode#463 from tweekmonster/develop
RopeGotoDefinition works with filenames that contain spaces.
2 parents b5b03ff + c0c9aea commit eff36e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymode/environment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ def goto_file(self, path, cmd='e', force=False):
235235
""" Function description. """
236236
if force or os.path.abspath(path) != self.curbuf.name:
237237
self.debug('read', path)
238+
if ' ' in path and os.name == 'posix':
239+
path = path.replace(' ', '\\ ')
238240
vim.command("%s %s" % (cmd, path))
239241

240242
@staticmethod

0 commit comments

Comments
 (0)