aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/lib/util/searchcursor.js
diff options
context:
space:
mode:
authorJon Reid2012-07-17 16:03:14 -0700
committerJon Reid2012-07-17 16:03:14 -0700
commit42a51e0c27f2e2cd825d07b3af5ec05b0e5208b3 (patch)
tree67deeb8c5b34aacc91f737cc64a3bc9ef1f4f05f /imports/codemirror/lib/util/searchcursor.js
parenta12cabc16273ffe04af4bce1f7438dc9326efa89 (diff)
parentb4b3e45d6684e77d361b4f8ca5be4889428320c5 (diff)
downloadninja-42a51e0c27f2e2cd825d07b3af5ec05b0e5208b3.tar.gz
Merge remote-tracking branch 'ninja-jduran/TimelineUber' into timeline-local
Diffstat (limited to 'imports/codemirror/lib/util/searchcursor.js')
-rw-r--r--imports/codemirror/lib/util/searchcursor.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/imports/codemirror/lib/util/searchcursor.js b/imports/codemirror/lib/util/searchcursor.js
index 3b77829f..ec3f73c3 100644
--- a/imports/codemirror/lib/util/searchcursor.js
+++ b/imports/codemirror/lib/util/searchcursor.js
@@ -1,7 +1,7 @@
1(function(){ 1(function(){
2 function SearchCursor(cm, query, pos, caseFold) { 2 function SearchCursor(cm, query, pos, caseFold) {
3 this.atOccurrence = false; this.cm = cm; 3 this.atOccurrence = false; this.cm = cm;
4 if (caseFold == null) caseFold = typeof query == "string" && query == query.toLowerCase(); 4 if (caseFold == null && typeof query == "string") caseFold = false;
5 5
6 pos = pos ? cm.clipPos(pos) : {line: 0, ch: 0}; 6 pos = pos ? cm.clipPos(pos) : {line: 0, ch: 0};
7 this.pos = {from: pos, to: pos}; 7 this.pos = {from: pos, to: pos};