summaryrefslogtreecommitdiff
path: root/public/vendor/codemirror/addon/edit
diff options
context:
space:
mode:
authorCheng-Han, Wu2016-02-08 22:49:35 -0600
committerCheng-Han, Wu2016-02-08 22:49:35 -0600
commitacb9dac1b995417f5d166dc19cd2b47601c12f35 (patch)
treef27b55f3bd03676f5314b2fd51e7480a4d20ca83 /public/vendor/codemirror/addon/edit
parenteb29e763a4ae8520c7583c575b2766d6a0d8ae42 (diff)
Updated to make continue list in todo list default as unchecked
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;
}