@digipair/skill-web-jsoneditor 0.37.0 → 0.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +5 -5
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -41374,7 +41374,7 @@ function findNextOccurrence(state, query) {
|
|
|
41374
41374
|
var _loop = function(cycled1, cursor1) {
|
|
41375
41375
|
cursor1.next();
|
|
41376
41376
|
if (cursor1.done) {
|
|
41377
|
-
if (cycled1) return
|
|
41377
|
+
if (cycled1) return cycled = cycled1, cursor = cursor1, {
|
|
41378
41378
|
v: null
|
|
41379
41379
|
};
|
|
41380
41380
|
cursor1 = new SearchCursor(state.doc, query, 0, Math.max(0, ranges[ranges.length - 1].from - 1));
|
|
@@ -41382,16 +41382,16 @@ function findNextOccurrence(state, query) {
|
|
|
41382
41382
|
} else {
|
|
41383
41383
|
if (cycled1 && ranges.some(function(r) {
|
|
41384
41384
|
return r.from == cursor1.value.from;
|
|
41385
|
-
})) return
|
|
41385
|
+
})) return cycled = cycled1, cursor = cursor1, "continue";
|
|
41386
41386
|
if (fullWord) {
|
|
41387
41387
|
var word = state.wordAt(cursor1.value.from);
|
|
41388
|
-
if (!word || word.from != cursor1.value.from || word.to != cursor1.value.to) return
|
|
41388
|
+
if (!word || word.from != cursor1.value.from || word.to != cursor1.value.to) return cycled = cycled1, cursor = cursor1, "continue";
|
|
41389
41389
|
}
|
|
41390
|
-
return
|
|
41390
|
+
return cycled = cycled1, cursor = cursor1, {
|
|
41391
41391
|
v: cursor1.value
|
|
41392
41392
|
};
|
|
41393
41393
|
}
|
|
41394
|
-
|
|
41394
|
+
cycled = cycled1, cursor = cursor1;
|
|
41395
41395
|
};
|
|
41396
41396
|
var _state_selection = state.selection, main = _state_selection.main, ranges = _state_selection.ranges;
|
|
41397
41397
|
var word = state.wordAt(main.head), fullWord = word && word.from == main.from && word.to == main.to;
|