Merge pull request #240 from tamago324/fix-balloon-display

Fix balloon display
This commit is contained in:
mergify[bot] 2020-08-29 13:32:09 +00:00 committed by GitHub
commit e634982d78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -624,6 +624,9 @@ def ParseVariables( variables_list,
def DisplayBaloon( is_term, display ):
if not is_term:
display = '\n'.join( display )
# To enable the Windows GUI to display the balloon correctly
# Refer https://github.com/vim/vim/issues/1512#issuecomment-492070685
vim.eval( "balloon_show( '' )" )
vim.eval( "balloon_show( {0} )".format(
json.dumps( display ) ) )