Commits

Tamas Kovacs  committed 51e8c3d

Fix case with some swank implementations returning empty (:return) response

  • Participants
  • Parent commits 27c7d2e

Comments (0)

Files changed (1)

File ftplugin/swank.py

 # SWANK client for Slimv
 # swank.py:     SWANK client code for slimv.vim plugin
 # Version:      0.9.10
-# Last Change:  13 Jan 2013
+# Last Change:  15 Jan 2013
 # Maintainer:   Tamas Kovacs <kovisoft at gmail dot com>
 # License:      This file is placed in the public domain.
 #               No warranty, express or implied.
 
                 elif message == ':return':
                     read_string = None
-                    result = r[1][0].lower()
+                    if len(r) > 1:
+                        result = r[1][0].lower()
+                    else:
+                        result = ""
                     if type(r_id) == str and r_id in actions:
                         action = actions[r_id]
                         action.pending = False