From ee1a2bb2b8ae2d5cf00202d75c824a8d1b0e3d0a Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Tue, 27 May 2014 04:15:19 +0200 Subject: [PATCH] Escape '\\' in UltiSnipsEdit. Fixes #308. --- pythonx/UltiSnips/snippet_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pythonx/UltiSnips/snippet_manager.py b/pythonx/UltiSnips/snippet_manager.py index deba28a..22c28e7 100644 --- a/pythonx/UltiSnips/snippet_manager.py +++ b/pythonx/UltiSnips/snippet_manager.py @@ -576,7 +576,7 @@ class SnippetManager(object): if len(potentials) > 1: 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)] file_to_edit = _ask_user(files, formatted) if file_to_edit is None: