agr / ropevim (http://rope.sf.net/ropevim.html)

A vim plugin for using rope python refactoring plugin in vim.

Clone this repository (size: 77.5 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/agr/ropevim/
commit 96: c6ca139b6955
parent 95: d45ec6f12942
branch: default
fix getting vim list variables Reported and tested by Ben Davis <bendavis78@gmail.com>.
Ali Gholami Rudi
13 months ago

Changed (Δ28 bytes):

raw changeset »

ropevim.py (1 lines added, 1 lines removed)

Up to file-list ropevim.py:

@@ -73,7 +73,7 @@ class VimUtils(ropemode.environment.Envi
73
73
        if str(vim.eval('exists("%s")' % vimname)) == '0':
74
74
            return default
75
75
        result = vim.eval(vimname)
76
        if result.isdigit():
76
        if isinstance(result, str) and result.isdigit():
77
77
            return int(result)
78
78
        return result
79
79