Fix bug with empty pattern

This commit is contained in:
Anton Medvedev 2019-02-09 18:12:22 +07:00
parent 0f33ceb592
commit 95b40b31b8

8
fx.js
View File

@ -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%'