diff options
author | Valerio Virgillito | 2012-07-17 11:29:09 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-17 11:29:09 -0700 |
commit | 58e86247524cc2d545bd6884f1b5c9fdba3b9164 (patch) | |
tree | 53305d354fce502ee39378babf47ace6c91ce2fd /imports/codemirror/lib/util/searchcursor.js | |
parent | 0f0cffd4df85e7adf5081fe66c768c70b2ead9b3 (diff) | |
parent | 4f737b24c19ddc02d20f9783b8b080fc6ef11142 (diff) | |
download | ninja-58e86247524cc2d545bd6884f1b5c9fdba3b9164.tar.gz |
Merge branch 'refs/heads/master' into v0.7.1
Diffstat (limited to 'imports/codemirror/lib/util/searchcursor.js')
-rw-r--r-- | imports/codemirror/lib/util/searchcursor.js | 2 |
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}; |