aboutsummaryrefslogtreecommitdiff
path: root/imports/codemirror/lib/util/searchcursor.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-07-17 11:28:39 -0700
committerValerio Virgillito2012-07-17 11:28:39 -0700
commit4f737b24c19ddc02d20f9783b8b080fc6ef11142 (patch)
tree212d164c0f83d80394e34f1df532ea0461ad328d /imports/codemirror/lib/util/searchcursor.js
parent5146f224258929415adf4a8022e492454b4e2476 (diff)
parent0e04fff0ea80fa5cbe96b8354db38bd334aea83a (diff)
downloadninja-4f737b24c19ddc02d20f9783b8b080fc6ef11142.tar.gz
Merge pull request #396 from ananyasen/codemirror2.3-upgrade
upgrade to codemirror 2.3
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};