diff --git a/doc/UltiSnips.txt b/doc/UltiSnips.txt index e8f1537..2b44181 100644 --- a/doc/UltiSnips.txt +++ b/doc/UltiSnips.txt @@ -748,6 +748,7 @@ Contributers are listed in chronological order: blueyed - Daniel Hahler expelledboy - Anthony Jackson allait - Alexey Bezhan + peacech - Charles Gunawan 7.2 Snippets *UltiSnips-contrisnippets* ------------ diff --git a/plugin/UltiSnips/__init__.py b/plugin/UltiSnips/__init__.py index 49bfd52..f3cdbe7 100644 --- a/plugin/UltiSnips/__init__.py +++ b/plugin/UltiSnips/__init__.py @@ -961,14 +961,12 @@ class SnippetManager(object): """ Given a list of snippets, ask the user which one they want to use, and return it. """ - display = repr( - [ "%i: %s" % (i+1,s.description) for i,s in - enumerate(snippets) - ] - ) + # make a python list + display = [ "%i: %s" % (i+1,s.description) for i,s in enumerate(snippets)] try: - rv = vim.eval("inputlist([%s])" % vim_string(display)) + # let vim_string format it as a vim list + rv = vim.eval("inputlist(%s)" % vim_string(display)) if rv is None or rv == '0': return None rv = int(rv)