Splitting echo text on \n and echoing lines
This commit is contained in:
parent
e60928d721
commit
101d949a88
@ -60,8 +60,12 @@ def PostVimMessage( message ):
|
|||||||
|
|
||||||
|
|
||||||
def EchoText( text ):
|
def EchoText( text ):
|
||||||
|
def EchoLine( text ):
|
||||||
vim.command( "echom '{0}'".format( EscapeForVim( text ) ) )
|
vim.command( "echom '{0}'".format( EscapeForVim( text ) ) )
|
||||||
|
|
||||||
|
for line in text.split( '\n' ):
|
||||||
|
EchoLine( line )
|
||||||
|
|
||||||
|
|
||||||
def EscapeForVim( text ):
|
def EscapeForVim( text ):
|
||||||
return text.replace( "'", "''" )
|
return text.replace( "'", "''" )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user