Disable Deprecation warnings for fetching strings.
This commit is contained in:
parent
5cb168798d
commit
1b71a872b2
@ -9,8 +9,6 @@ import os
|
||||
import re
|
||||
import traceback
|
||||
|
||||
from UltiSnips.debug import debug
|
||||
|
||||
from UltiSnips.compatibility import as_unicode
|
||||
from UltiSnips._diff import diff, guess_edit
|
||||
from UltiSnips.geometry import Position
|
||||
@ -806,7 +804,7 @@ class SnippetManager(object):
|
||||
want to use, and return it.
|
||||
"""
|
||||
# make a python list
|
||||
display = [ "%i: %s" % (i+1,s.description) for i,s in enumerate(snippets)]
|
||||
display = [ as_unicode("%i: %s") % (i+1,s.description) for i,s in enumerate(snippets)]
|
||||
|
||||
try:
|
||||
rv = _vim.eval("inputlist(%s)" % _vim.escape(display))
|
||||
|
@ -47,6 +47,9 @@ if sys.version_info >= (3,0):
|
||||
else:
|
||||
from UltiSnips.compatibility_py2 import *
|
||||
|
||||
import warnings
|
||||
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
||||
|
||||
def set_vim_cursor(line, col):
|
||||
"""Wrapper around vims access to window.cursor. It can't handle
|
||||
multibyte chars, we therefore have to compensate"""
|
||||
|
Loading…
Reference in New Issue
Block a user