Pass <s-tab> through to supertab.
This commit is contained in:
parent
43b1cbd958
commit
cd83608df3
@ -1368,6 +1368,7 @@ Contributors listed in chronological order:
|
|||||||
Keith Welch - paralogiki
|
Keith Welch - paralogiki
|
||||||
Zhao Cai - zhaocai
|
Zhao Cai - zhaocai
|
||||||
John Szakmeister - jszakmeister
|
John Szakmeister - jszakmeister
|
||||||
|
Jonas Diemer - diemer
|
||||||
|
|
||||||
|
|
||||||
8.2 Snippets *UltiSnips-contrisnippets*
|
8.2 Snippets *UltiSnips-contrisnippets*
|
||||||
|
@ -572,6 +572,10 @@ class SnippetManager(object):
|
|||||||
before, after = _vim.buf.current_line_splitted
|
before, after = _vim.buf.current_line_splitted
|
||||||
snippets = self._snips(before, True)
|
snippets = self._snips(before, True)
|
||||||
|
|
||||||
|
if len(snippets) == 0:
|
||||||
|
self._handle_failure(self.backward_trigger)
|
||||||
|
return True
|
||||||
|
|
||||||
# Sort snippets alphabetically
|
# Sort snippets alphabetically
|
||||||
snippets.sort(key=lambda x: x.trigger)
|
snippets.sort(key=lambda x: x.trigger)
|
||||||
|
|
||||||
@ -793,6 +797,8 @@ class SnippetManager(object):
|
|||||||
"""
|
"""
|
||||||
if trigger.lower() == "<tab>":
|
if trigger.lower() == "<tab>":
|
||||||
feedkey = "\\" + trigger
|
feedkey = "\\" + trigger
|
||||||
|
elif trigger.lower() == "<s-tab>":
|
||||||
|
feedkey = "\\" + trigger
|
||||||
else:
|
else:
|
||||||
feedkey = None
|
feedkey = None
|
||||||
mode = "n"
|
mode = "n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user