aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/lib/util/match-highlighter.js
diff options
context:
space:
mode:
authorKruti Shah2012-07-17 12:40:00 -0700
committerKruti Shah2012-07-17 12:40:00 -0700
commitbf2d7bdb22c28089dc1067bc9094ebc590daac87 (patch)
tree2156d9920ea1b7db49ed6460545fea7cda121bae /imports/codemirror/lib/util/match-highlighter.js
parent7e2c2dbd040ed79a3f0678f91bd4b6db9cf69231 (diff)
parentb4b3e45d6684e77d361b4f8ca5be4889428320c5 (diff)
downloadninja-bf2d7bdb22c28089dc1067bc9094ebc590daac87.tar.gz
Merge branch 'refs/heads/TimelineUberJD' into Timeline-local-kruti
Diffstat (limited to 'imports/codemirror/lib/util/match-highlighter.js')
-rw-r--r--imports/codemirror/lib/util/match-highlighter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/imports/codemirror/lib/util/match-highlighter.js b/imports/codemirror/lib/util/match-highlighter.js
index b70cc4cf..59098ff8 100644
--- a/imports/codemirror/lib/util/match-highlighter.js
+++ b/imports/codemirror/lib/util/match-highlighter.js
@@ -23,7 +23,7 @@
23 function markDocument(cm, className, minChars) { 23 function markDocument(cm, className, minChars) {
24 clearMarks(cm); 24 clearMarks(cm);
25 minChars = (typeof minChars !== 'undefined' ? minChars : DEFAULT_MIN_CHARS); 25 minChars = (typeof minChars !== 'undefined' ? minChars : DEFAULT_MIN_CHARS);
26 if (cm.somethingSelected() && cm.getSelection().length >= minChars) { 26 if (cm.somethingSelected() && cm.getSelection().replace(/^\s+|\s+$/g, "").length >= minChars) {
27 var state = getMatchHighlightState(cm); 27 var state = getMatchHighlightState(cm);
28 var query = cm.getSelection(); 28 var query = cm.getSelection();
29 cm.operation(function() { 29 cm.operation(function() {