Skip to content

Commit

Permalink
[closetag addon] Make whenClosing/whenOpening properly default to true
Browse files Browse the repository at this point in the history
Closes #6322
  • Loading branch information
marijnh committed Jun 21, 2020
1 parent 6bb912b commit ddb3334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/edit/closetag.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
cm.removeKeyMap("autoCloseTags");
if (!val) return;
var map = {name: "autoCloseTags"};
if (typeof val != "object" || val.whenClosing)
if (typeof val != "object" || val.whenClosing !== false)
map["'/'"] = function(cm) { return autoCloseSlash(cm); };
if (typeof val != "object" || val.whenOpening)
if (typeof val != "object" || val.whenOpening !== false)
map["'>'"] = function(cm) { return autoCloseGT(cm); };
cm.addKeyMap(map);
});
Expand Down

0 comments on commit ddb3334

Please sign in to comment.