summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/addon/edit
diff options
context:
space:
mode:
Diffstat (limited to 'public/vendor/codemirror/addon/edit')
-rw-r--r--public/vendor/codemirror/addon/edit/continuelist.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/public/vendor/codemirror/addon/edit/continuelist.js b/public/vendor/codemirror/addon/edit/continuelist.js
index e70e0ec8..18db07fc 100644
--- a/public/vendor/codemirror/addon/edit/continuelist.js
+++ b/public/vendor/codemirror/addon/edit/continuelist.js
@@ -41,6 +41,9 @@
var bullet = unorderedListRE.test(match[2]) || match[2].indexOf(">") >= 0
? match[2]
: (parseInt(match[3], 10) + 1) + match[4];
+
+ // make todo list default unchecked
+ after = after.replace('[x]', '[ ]');
replacements[i] = "\n" + indent + bullet + after;
}