Fix balloons in the GUI

This commit is contained in:
Ben Jackson 2019-02-15 13:19:13 +00:00
commit c684fa0cbb
2 changed files with 11 additions and 5 deletions

View file

@ -343,3 +343,11 @@ def ExpandReferencesInDict( obj, mapping, **kwargs ):
for k in obj.keys():
obj[ k ] = expand_refs_in_object( obj[ k ] )
def DisplayBaloon( is_term, display ):
if not is_term:
display = '\n'.join( display )
vim.eval( "balloon_show( {0} )".format(
json.dumps( display ) ) )