Commits

Anonymous committed c6ca139

fix getting vim list variables

Reported and tested by Ben Davis <bendavis78@gmail.com>.

  • Participants
  • Parent commits d45ec6f

Comments (0)

Files changed (1)

         if str(vim.eval('exists("%s")' % vimname)) == '0':
             return default
         result = vim.eval(vimname)
-        if result.isdigit():
+        if isinstance(result, str) and result.isdigit():
             return int(result)
         return result