escape file paths if opening new buffers/tabs, fixes #54

This commit is contained in:
David Halter
2012-12-21 13:03:39 +01:00
parent 6a70c84cc0
commit ff10a0a6e4
3 changed files with 7 additions and 3 deletions

View File

@@ -299,5 +299,9 @@ def tabnew(path):
vim.command('tabnew %s' % path)
def escape_file_path(path):
return path.replace(' ', r'\ ')
def print_to_stdout(level, str_out):
print(str_out)