Permalink
Browse files

improved testing for closing "/>" in meta.tag.block tags when using a…

…uto_close_tag
  • Loading branch information...
1 parent ac8827c commit 2617f763f1f5ff0840cb1564a6c3458fc3e4b81a atomi committed Oct 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 coldfusiontagcompletions.py
View
3 coldfusiontagcompletions.py
@@ -43,7 +43,8 @@ def run(self, edit):
tagdata = tagdata.pop(0).split(" ")
tagname = tagdata[0]
- if self.view.match_selector(sel.end(),"meta.tag.block.cf") and tagdata[-1].find("/") == -1:
+ # previously used tagdata[-1].find("/") == -1 to test for closing forward slash
+ if self.view.match_selector(sel.end(),"meta.tag.block.cf")and not self.view.substr(sel.end() - 1) == "/":
if not tagname[-1] == ">":
tagname = tagname + ">"
if not SETTINGS.get("auto_indent_on_close") or tagname == "cfoutput>":

0 comments on commit 2617f76

Please sign in to comment.