Anonymous triggers with empty trigger string where not expanded after whitespaces.
This commit is contained in:
parent
b774ce8f11
commit
72ed530746
@ -719,7 +719,7 @@ class SnippetManager(object):
|
||||
before, after = self._get_before_after()
|
||||
snip = Snippet(trigger, value, descr, options, globals)
|
||||
|
||||
if snip.matches(before):
|
||||
if not trigger or snip.matches(before):
|
||||
self._do_snippet(snip, before, after)
|
||||
return True
|
||||
else:
|
||||
|
5
test.py
5
test.py
@ -2008,6 +2008,11 @@ class Anon_NoTrigger_Simple(_AnonBase):
|
||||
keys = "abc" + EA
|
||||
wanted = "abcsimple expand"
|
||||
|
||||
class Anon_NoTrigger_AfterSpace(_AnonBase):
|
||||
args = '"simple expand"'
|
||||
keys = "abc " + EA
|
||||
wanted = "abc simple expand"
|
||||
|
||||
class Anon_NoTrigger_Multi(_AnonBase):
|
||||
args = '"simple $1 expand $1 $0"'
|
||||
keys = "abc" + EA + "123" + JF + "456"
|
||||
|
Loading…
x
Reference in New Issue
Block a user