Skip to content

Commit

Permalink
Close autocomplete popup only if some tag is closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
titoBouzout committed Mar 4, 2012
1 parent 88679dc commit 38b32ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tag_close_tag_on_slash.py
Expand Up @@ -20,10 +20,10 @@ def run(self, edit):
previousCharacter = view.substr(sublime.Region(cursorPosition - 1, cursorPosition))

if '<' == previousCharacter:
closed_some_tag = True
tag = self.close_tag(view.substr(sublime.Region(0, cursorPosition)))
view.insert(edit, cursorPosition, tag);
if tag != '/':
closed_some_tag = True
new_selections_insert.append(sublime.Region(region.end()+len(tag), region.end()+len(tag)))
else:
new_selections.append(sublime.Region(region.end()+len(tag), region.end()+len(tag)))
Expand Down

0 comments on commit 38b32ad

Please sign in to comment.