Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small condition change in findMatchingTag. #1688

Closed
wants to merge 1 commit into from

Conversation

sathyamoorthi
Copy link
Contributor

While i add matchTags addon and give pullrequest adobe/brackets#4504, i was notified with small UX update adobe/brackets#4504 (comment). That is valid one. So i slightly change "if condition" in findMatchingTag function.

@@ -140,7 +140,7 @@

CodeMirror.findMatchingTag = function(cm, pos, range) {
var iter = new Iter(cm, pos.line, pos.ch, range);
if (!tagAt(iter, iter.ch)) return;
if (iter.text.indexOf(">") == -1 && iter.text.indexOf("<") == -1) return;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You added this condition to improve performance in non HTML mode. So change of this line won't affect any core functionality.

@marijnh
Copy link
Member

marijnh commented Jul 25, 2013

Looks harmless. Merged.

@marijnh marijnh closed this Jul 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants