Splitting echo text on \n and echoing lines

This commit is contained in:
Strahinja Val Markovic 2013-02-21 10:50:38 -08:00
parent e60928d721
commit 101d949a88

View File

@ -60,7 +60,11 @@ def PostVimMessage( message ):
def EchoText( text ):
vim.command( "echom '{0}'".format( EscapeForVim( text ) ) )
def EchoLine( text ):
vim.command( "echom '{0}'".format( EscapeForVim( text ) ) )
for line in text.split( '\n' ):
EchoLine( line )
def EscapeForVim( text ):