jcberquist / sublimetext-cfml

CFML (ColdFusion and Lucee) package for Sublime Text
MIT License
115 stars 24 forks source link

Adding forward slash inside existing cfml tag causes incorrect closing tag insert #108

Closed redtopia closed 6 years ago

redtopia commented 6 years ago

Sometimes when writing in tag mode, I copy/paste a start cfml tag to the place where I want to end it, then I add a forward slash to the tag. When I do this, sometimes a different end tag is added when I enter the forward slash.

In this example, I've already pasted the <cfoutput> tag to where I want to put it, and then I am adding the forward slash. As you can see, it adds the </div> instead of just letting me add the forward slash.

erqczdfsq0

jcberquist commented 6 years ago

Thanks for the report. I think the quickest solution would be to not fire the close tag command if the characters after the cursor position look like xxxxx>. Does that sound like it would work for you?

redtopia commented 6 years ago

I think it could be that simple!