Pass <s-tab> through to supertab.

This commit is contained in:
Holger Rapp 2013-07-16 07:05:42 +02:00
parent 43b1cbd958
commit cd83608df3
2 changed files with 7 additions and 0 deletions

View File

@ -1368,6 +1368,7 @@ Contributors listed in chronological order:
Keith Welch - paralogiki
Zhao Cai - zhaocai
John Szakmeister - jszakmeister
Jonas Diemer - diemer
8.2 Snippets *UltiSnips-contrisnippets*

View File

@ -572,6 +572,10 @@ class SnippetManager(object):
before, after = _vim.buf.current_line_splitted
snippets = self._snips(before, True)
if len(snippets) == 0:
self._handle_failure(self.backward_trigger)
return True
# Sort snippets alphabetically
snippets.sort(key=lambda x: x.trigger)
@ -793,6 +797,8 @@ class SnippetManager(object):
"""
if trigger.lower() == "<tab>":
feedkey = "\\" + trigger
elif trigger.lower() == "<s-tab>":
feedkey = "\\" + trigger
else:
feedkey = None
mode = "n"