Escape '\\' in UltiSnipsEdit.

Fixes #308.
This commit is contained in:
Holger Rapp 2014-05-27 04:15:19 +02:00
parent f2d9e8b608
commit ee1a2bb2b8

View File

@ -576,7 +576,7 @@ class SnippetManager(object):
if len(potentials) > 1: if len(potentials) > 1:
files = sorted(potentials) files = sorted(potentials)
formatted = [as_unicode('%i: %s') % (i, fn) for formatted = [as_unicode('%i: %s') % (i, escape(fn, '\\')) for
i, fn in enumerate(files, 1)] i, fn in enumerate(files, 1)]
file_to_edit = _ask_user(files, formatted) file_to_edit = _ask_user(files, formatted)
if file_to_edit is None: if file_to_edit is None: