Filepath space escaping

This commit is contained in:
Boris Staletic 2017-05-24 15:12:03 +02:00
parent 263bd88bd5
commit 3e77555905

View File

@ -1595,3 +1595,10 @@ def InsertNamespace_append_test( vim_current, *args ):
' int taco;', ' int taco;',
' List salad = new List' ] ' List salad = new List' ]
AssertBuffersAreEqualAsBytes( expected_buffer, vim_current.buffer ) AssertBuffersAreEqualAsBytes( expected_buffer, vim_current.buffer )
def EscapedFilepath_test():
eq_( vimsupport.EscapedFilepath( '/path/ with /sp ac es' ),
'/path/\ with\ /sp\ ac\ es' )
eq_( vimsupport.EscapedFilepath( ' relative path/ with / spaces ' ),
'\ relative\ path/\ with\ /\ spaces\ ' )