Skip to content

Commit

Permalink
prevents auto_complete from triggering when starting a new tag
Browse files Browse the repository at this point in the history
  • Loading branch information
atomi committed Jun 25, 2012
1 parent b3aab7b commit f469541
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions coldfusiontagcompletions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def on_modified(self, view):
return
sel = view.sel()[0].a

# we're starting a new tag don't trigger auto_complete
if "punctuation.definition.tag.cf.begin" in view.scope_name(sel):
return

if view.substr(sel - 1) == " ":
if any(s in view.scope_name(sel) for s in self.valid_scopes_tags):
t = view.settings().get("auto_complete_delay")
Expand Down

0 comments on commit f469541

Please sign in to comment.