Fix bug with empty pattern

js-version
Anton Medvedev 5 years ago
parent 0f33ceb592
commit 95b40b31b8

@ -460,7 +460,9 @@ module.exports = function start(filename, source) {
json = source
}
findGen = find(json, highlight)
if (highlight) {
findGen = find(json, highlight)
}
render()
}
@ -485,6 +487,8 @@ module.exports = function start(filename, source) {
}
highlight = regex
search.hide()
if (highlight) {
findGen = find(json, highlight)
findNext()
@ -492,8 +496,6 @@ module.exports = function start(filename, source) {
findGen = null
currentPath = null
}
search.hide()
search.setValue('')
box.height = '100%'

Loading…
Cancel
Save