Permalink
Browse files

vim-mode: Tweak type printing heuristic

  • Loading branch information...
1 parent cc68cf5 commit 4571481340a5dcf82e3ad0b27f58086ba92bd613 @let-def let-def committed Mar 14, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 vim/autoload/merlin.py
View
@@ -350,6 +350,9 @@ def vim_type(expr=None,is_approx=False):
cmd = ["type"] + cmd_expr + cmd_at
ty = send_command(*cmd)
if is_approx: sys.stdout.write("(approx) ")
+ if isinstance(ty,dict):
+ if "type" in ty: ty = ty['type']
+ else: ty = str(ty)
if expr: print(expr + " : " + ty)
else: print(ty)
except MerlinExc as e:

0 comments on commit 4571481

Please sign in to comment.